UNIX
UNIX systems usage, administration and development information.

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.
UNIX

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

r3 - 08 Oct 2008 - 19:01:02 - RobertSajan
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.
This site is powered by the TWiki collaboration platformCopyright 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Ahatwiki? Send feedback Syndicate this site RSSATOM