cd /etc/rc.d
vim rc.local
add some commands
Examples:
# Start Apache http server with root permission
/usr/sbin/apachectl -k start
# Start tomcat with specified account mstar
su -c "cd /data/pull-tomcat/bin; ./startup.sh" - mstar
/usr/bin/mysqld_safe --user=mysql &
# Start other application with specifical account mstar
su -c "cd /data/DSS3.0/realtime/bin; ./DSS-start.sh" - mstar