![]() |
Equivalent of "service" command in Debian?
I just installed Debian on an old machine I have sitting around. Things are going great, but I cant seem to figure out the Debian equivalent of the service command (as in "service httpd status"). I use service on my Red Hat and Mandrake boxen with no problems, but it just isnt there. What is the equivalent command?
|
Argh, anyone?
|
Some of the init scripts will accept status as a parameter.
i.e.: /etc/init.d/httpd status Also, you can start/stop: /etc/init.d/httpd start This will also work on RedHat. Run the script without a parameter to see what it supports. I don't know of a direct equivalent to /sbin/service on a RedHat box. |
OK, thanks... That works for most things. Im so used to Red Hat that when I installed Debian and tried tooling around, I was lost as to how to get services running.
|
The "service" command on RedHat is a simple shell script. It's only 1819 bytes.
I don't have Debian installed, but I bet that you could just simply copy the script and use it there. (Since it's just calling /etc/init.d/servicename with the specified parameters...) |
All times are GMT -8. The time now is 10:38 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project