What is the equivalent for "service servicename start" that Fedora/RHEL/CentOS uses for Debian/Ubuntu?
I've just read on some question here on serverfoault that using /etc/init.d/service is obsolete, so what's the correct way on Debian?
|
feedback
|
|
I don't know about the "correct" way, but I always use
| |||
|
feedback
|
|
You can always just invoke the startup scripts directly (e.g., /etc/init.d/foo restart). This works on RedHat variants as well, although the path is slightly different there (/etc/rc.d/init.d, although I believe /etc/init.d is a symlink to it as well). | |||||||||
feedback
|
|
all most every distro has /etc/init.d/service ****** {start|restart|reload|stop} | |||
|
feedback
|
|
The same | |||
|
feedback
|
|
Using /etc/init.d/foo on RedHat can cause problem if selinux is activated because the script should not set up the context correctly. The service command always works on selinux enabled RHEL. | |||
|
feedback
|
|
I suggest that you read about Upstart: http://www.linux.com/archive/feature/125977 http://www.netsplit.com/category/tech/upstart/ It is used on:
| |||
|
feedback
|
|
Whatever about on Redhat systems, /etc/init.d/service is still the norm on debian derivatives. | |||
|
feedback
|