| INITCTL(8) | System Manager's Manual (smm) | INITCTL(8) |
NAME¶
initctl — Control
tool for Finit
SYNOPSIS¶
/sbin/initctl |
[-bcfhlpqtv] [COMMAND] |
DESCRIPTION¶
initctl is the official tool for
interacting with finit(8). It comes with functions for
showing status, querying health of services, as well as editing, enabling
and disabling services.
OPTIONS¶
This program follows the usual UNIX command line syntax, with long options starting with two dashes (`-'). The options are as follows:
-b,--batch- Batch mode, no screen size probing.
-c,--create- Create missing paths (and files) as needed. Useful with the edit command.
-f,--force- Ignore missing files and arguments, never prompt.
-h,--help- Show built-in help text.
-1,--once- Only one lap in commands like top.
-p,--plain- Use plain table headings, no ANSI control characters.
-q,--quiet- Silent, only return status of command.
-t,--no-heading- Skip table headings.
-v,--verbose- Verbose output, where applicable.
COMMANDS¶
initctldebug- Toggle finit (daemon) debug to /dev/console
initctlhelp- Show built-in help text
initctlversion- Show Finit (daemon) version
initctlls | list- List all
*.conffiles in /etc/finit.d initctlcreate CONF- Create
.confin /etc/finit.d/available initctldelete CONF- Delete
.confin /etc/finit.d/available initctlshow CONF- Show
.confin /etc/finit.d/available initctledit CONF- Edit
.confin /etc/finit.d/available initctltouch CONF- Change (mark as modified)
.confin /etc/finit.d/available, like edit this tellsfinitthat a configuration has been changed and is a candidate to be restarted (or SIGHUP'ed) oninitctl reload initctlenable CONF- Enable
.confin /etc/finit.d/available, i.e., add symlink in /etc/finit.d/enabled initctldisable CONF- Disable
.confin /etc/finit.d/enabled, i.e., removes symlink initctlreload- Reload
*.conf in/etc/finit.d, i.e., activates changes initctlcond set COND- Set (assert) user-defined condition,
+usr/COND initctlcond clr | clear COND- Clear (deassert) user-defined condition,
-usr/COND initctlcond status- Show condition status, default
condcommand. initctlcond dump- Dump all conditions and their status
initctlident [NAME]- Display indentities of all run/task/services, or only instances matching
NAME. A partial string, e.g.,NAM, will not match anything initctllog [NAME]- Show ten last Finit, or
NAME, messages from syslog initctlstartNAME[:ID]- Start service by name, with optional ID, e.g.,
initctl start tty:1 initctlstopNAME[:ID]- Stop/Pause a running service by name
initctlreloadNAME[:ID]- Reload service by name (SIGHUP or restart)
initctlrestartNAME[:ID]- Restart (stop/start) service by name
initctlstatusNAME[:ID]- Show service status, by name. If only
NAMEis given and multiple instances exits, a summary of all matching instances are shown. Only an exact match displays the detailed status for a particular instance initctlstatus- Show status of all services, default command
initctlcgroup- List cgroup config overview
initctlps- List processes based on cgroups
initctltop- Show top-like listing based on cgroups
initctlrunlevel [0-9]- Show or set runlevel: 0 halt, 6 reboot
initctlreboot- Reboot system, default if
rebootis symlinked toinitctl initctlhalt- Halt system, default if
haltis symlinked toinitctl initctlpoweroff- Power-off system, default if
poweroffis symlinked toinitctl initctlsuspend- Suspend system, default if
suspendis symlinked toinitctl initctlutmp show- Raw dump of UTMP/WTMP db
SEE ALSO¶
AUTHORS¶
finit was conceived and reverse engineered
by Claudio Matsuoka. Since v1.0, maintained by Joachim Wiberg, with
contributions by many others.
| June 6, 2021 | Linux |