| Line 1: | Line 1: | ||
| − | You can start, stop, and restart a service(daemon) using the   | + | You can start, stop, and restart a service(daemon) using the <code>systemctl</code> command.  | 
You can't control all services in the operating system but only the [[imRAD services(daemons) | imRAD services]] and some services.  | You can't control all services in the operating system but only the [[imRAD services(daemons) | imRAD services]] and some services.  | ||
The following services are controllable.  | The following services are controllable.  | ||
Revision as of 16:58, 15 April 2021
You can start, stop, and restart a service(daemon) using the systemctl command.
You can't control all services in the operating system but only the  imRAD services and some services.
The following services are controllable.
- smgr
 - dhcpv4
 - dhcpv6
 - failover
 - startup
 - logexp
 - radiusd
 - mysql
 - apache2
 - rsyslog
 
LYSH@MyHostName# systemctl -h
usage: systemctl [-h] {disable,enable,reload,restart,start,status,stop} ... service
 The 'systemctl' command
positional arguments:
  service               service name( start only this one ) or all
optional arguments:
  -h, --help            show this help message and exit
Commands arguments:
    disable             disable service
    enable              enable service
    reload              reload service
    restart             restart service
    start               start service
    status              status service
    stop                stop service
Note that some services do not support the reload command.
LYSH@MyHostName# systemctl start smgr // Starting the smgr service. LYSH@MyHostName# show service // display all services LYSH@MyHostName# systemctl stop smgr // Stopping the smgr service. LYSH@MyHostName# show service // display all services LYSH@MyHostName# systemctl restart smgr // Restarting the smgr service. LYSH@MyHostName# show service // display all services