/etc/init.d/
directory. To use it, make sure you have superuser privileges:
~]$ su -
Password:
service <service_name>
start
. For example:
~]# service httpd start
Starting httpd: [ OK ]
service <service_name>
stop
. For example:
~]# service httpd stop
Stopping httpd: [ OK ]
service <service_name>
restart
. For example:
~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
service <service_name>
status
. For example:
~]# service httpd status
httpd (pid 7474) is running...
--status-all
option:
~]# service --status-all
abrt (pid 1492) is running...
acpid (pid 1305) is running...
atd (pid 1540) is running...
auditd (pid 1103) is running...
automount (pid 1315) is running...
Avahi daemon is running
cpuspeed is stopped
... several lines omitted ...
wpa_supplicant (pid 1227) is running...