Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 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
sailor is offline  
Old 11-26-2003, 07:18 PM   #2 (permalink)
beauty in the breakdown
 
Location: Chapel Hill, NC
Argh, anyone?
__________________
"Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws."
--Plato
sailor is offline  
Old 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.
Boner is offline  
Old 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
sailor is offline  
Old 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...)
peacy is offline  
 

Tags
command, debian, equivalent, service


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 11:53 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, 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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76