Jan dela Cruz wrote:
Hi all. Just a quick question, is there any way to have redhat start first this service, then this service next... somewhat you define the order? its like ntsysv, but you have capability to move service up or down, which will be followed upon loading?
Can’t seem to answer this one... :(
Thanks in advance
just specify the priority number on the service symlink located at /etc/rc2.d/ (debian) or /etc/rc3.d/ (rh/mdk)
for example, if you want to load apache httpd first than mysqld, just set the service symlink for httpd to be lower than for mysqld:
/etc/rc#.d/@S80httpd <--- will be loaded first /etc/rc#.d/@S90mysqld
and if you want to (start/) stop the services in a last-in-first-out manner, just reverse the priority number of the service symlinks.
/etc/rc#.d/@K10httpd <--- will be stopped first /etc/rc#.d/@K20mysqld
Note: service symlinks should be linked will the corresponding service init script located at /etc/init.d/
HTH
-- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
