Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   Equivalent of "service" command in Debian? (https://thetfp.com/tfp/tilted-technology/37235-equivalent-service-command-debian.html)

sailor 11-26-2003 10:13 AM

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?

sailor 11-26-2003 07:18 PM

Argh, anyone?

Boner 11-27-2003 02:43 AM

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.

sailor 11-27-2003 07:20 AM

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.

peacy 11-28-2003 04:59 AM

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 09:47 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54