m (Shin moved page CLI - 서비스(데몬) 제어 to CLI - Control services(daemons)) |
|||
| Line 1: | Line 1: | ||
| − | + | 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(daemons) | imRAD services]] and some services. | ||
| + | The following services are controllable. | ||
| + | * smgr | ||
| + | * dhcpv4 | ||
| + | * dhcpv6 | ||
| + | * failover | ||
| + | * startup | ||
| + | * logexp | ||
| + | * radiusd | ||
| + | * mysql | ||
| + | * apache2 | ||
| + | * rsyslog | ||
| + | |||
<pre> | <pre> | ||
LYSH@MyHostName# systemctl -h | LYSH@MyHostName# systemctl -h | ||
| Line 21: | Line 34: | ||
stop stop service | stop stop service | ||
</pre> | </pre> | ||
| − | + | ||
| − | + | Note that some services do not support the reload command. | |
| − | + | ||
| − | + | <pre> | |
| − | + | 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 | ||
| + | </pre> | ||
Revision as of 16:55, 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