Guests are welcome to view our materials. To subscribe, edit, view raw markup, etc., you'll need to register for an account. Accounts are free (and will always be free) - your involvement helps us directly and indirectly (by demonstrating that our work matters to our funders...)
StartingPoints has more info.
service
service
service command is used to manage services (daemons, servers).
service script common options:
- start
- stop
- restart
- status
Scripts can accept more or less options. Some scripts will echo to you a usage statement if you supply no option, as shown here:
[user@acc ~]$ /sbin/service httpd
Usage: httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}
service usage example
example:
[user@acc ~]$ /sbin/service httpd status
httpd (pid 31079 30656 27256 25503 20890 12318 12317 12312 7270 5787 4727) is running...
service example explained
above example explained:
-
service starts the init script named (i.e. httpd ) which is located in /etc/init.d
- the option
status is sent to the httpd script
-
httpd returns the following line showing the PID's of httpd processes running
--
RobertSajan - 03 Oct 2008