Linux command of the service


Linux command of the service


The following is only my work, the learning process into contact with the contents of deficiencies like him to bear.

Brief introduction

service command is a utility control system services Redhat Linux compatible releases for it to start (start), stop (stop), restart (restart) and shut down the system. They can also display the current status of all system services (status).
This command is not available in all versions of linux distributions. Mainly in redhat, fedora, mandriva and centos in. This command is located in / sbin directory, use this command to view the file command will find it is a script command. Analysis shows this script command role is to find the appropriate /etc/init.d directory services, carried out the opening and closing operations.

grammar

service [parameters] []
service service.name start/stop/restart/reload/status

parameter

-h displays help information
--status-all display the status of all service
version information --version Show

Examples

Show All service status

service --status-all

Start the service crond status

service crond status

Stop the service crond

service crond stop

Start the service crond

service crond start

Restart service crond

service crond restart

To reload crond services

service crond reload

[To be continued] [search] linux service command

reference

Guess you like

Origin www.cnblogs.com/hai-feng/p/12453048.html