Use initctl commands of linux to control and manage init daemons
This article mainly introduces the use of linux initctl command to control and manage the init daemon process, the article is very detailed, has a certain reference value, interested friends must read it!
The role of the initctl command is to control and manage the init daemon.
The initctl command is included in the commands provided by upstart. Upstart is an event-driven optimization used to start service A without waiting for the end of service B.
The initctl command allows the system administrator to interact with the upstart init background daemon. When running as initctl, the first non-optional parameter is the command itself, and the other parameters can be specified before or after the command. The default is the start, stop, restart, reload, and status commands.
Syntax format: initctl [parameters] [ARG]
Common parameters:
Command description:
Reference example
List all jobs:
[root@linuxcool ~] # initctl list
Start the job control-alt-delete:
[root@linuxcool ~] # initctl start control-alt-delete
View the status of the job / dev/tty6:
[root@linuxcool ~] # initctl status tty TTY=/dev/tty6
Reload / dev/tty6 configuration:
[root@linuxcool ~] # initctl reload tty TTY=/dev/tty6 above is all the contents of using linux's initctl command to control and manage the init daemon. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!