11-26-2003, 10:13 AM | #1 (permalink) |
beauty in the breakdown
Location: Chapel Hill, NC
|
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?
__________________
"Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws." --Plato |
11-27-2003, 02:43 AM | #3 (permalink) |
Insane
Location: Plugged In
|
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. |
11-27-2003, 07:20 AM | #4 (permalink) |
beauty in the breakdown
Location: Chapel Hill, NC
|
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.
__________________
"Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws." --Plato |
11-28-2003, 04:59 AM | #5 (permalink) |
Crazy
Location: Reading, UK
|
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...) |
Tags |
command, debian, equivalent, service |
|
|