Line 1,150: |
Line 1,150: |
| | | |
| === General Service Handling === | | === General Service Handling === |
| + | ====SME9==== |
| SME Server uses [http://smarden.org/runit/ runit], a UNIX init scheme with service supervision. See the man page of [http://smarden.org/runit/sv.8.html the 'sv' command] | | SME Server uses [http://smarden.org/runit/ runit], a UNIX init scheme with service supervision. See the man page of [http://smarden.org/runit/sv.8.html the 'sv' command] |
| | | |
Line 1,186: |
Line 1,187: |
| kill => 'k', | | kill => 'k', |
| exit => 'x', | | exit => 'x', |
− |
| |
− | ====Example====
| |
| | | |
| Restarting: | | Restarting: |
| | | |
| sv t /service/httpd-e-smith | | sv t /service/httpd-e-smith |
| + | |
| + | ====SME10==== |
| + | '''Systemctl''' is a '''systemd''' utility that is responsible for Controlling the '''systemd''' system and service manager. '''Systemd''' is a collection of system management daemons, utilities, and libraries which serves as a replacement of '''System V init''' daemon. Systemd functions as central management and configuration platform |
| + | |
| + | To list all loaded services on your system (whether active; running, exited or failed, use the '''list-units''' subcommand and <code>--type</code> switch with a value of service. |
| + | # systemctl list-units --type=service |
| + | OR |
| + | # systemctl --type=service |
| + | |
| + | |
| + | But to get a quick glance of all running services (i.e all loaded and actively running services), run the following command. |
| + | # systemctl list-units --type=service --state=running |
| + | OR |
| + | # systemctl --type=service --state=running |
| + | |
| + | |
| + | List all failed units. |
| + | # systemctl --failed |
| + | |
| + | |
| + | Check whether a Unit or Service is running or not?. |
| + | # systemctl status httpd-e-smith |
| + | |
| + | |
| + | How do I start, restart, stop, reload and check the status of a service ('''httpd.service''') in Linux. |
| + | # systemctl start httpd-e-smith.service |
| + | # systemctl restart httpd-e-smith.service |
| + | # systemctl stop httpd-e-smith.service |
| + | # systemctl reload httpd-e-smith.service |
| + | # systemctl status httpd-e-smith.service |
| | | |
| ===Add a custom service=== | | ===Add a custom service=== |