depctl - manual page for depctl (depinit) version 0.1.4
SYNOPSIS
depctl
[OPTION...] [DAEMON]
DESCRIPTION
Tell depinit to do something.
-k, --kill=DAEMON
Kill DAEMON
-r, --roll=DAEMON
Roll back dependencies of DAEMON
-s, --start=DAEMON
Start DAEMON
-f, --fifo=FIFO
Talk to depinit through fifo
-p, --pid=PID
Talk to depinit pid PID
-l, --syslog=PRIORITY
Errors to syslog. PRIORITY is one of: emergency,
alert, critical, error, warning, notice, warning,
info, or debug
-L, --no-syslog
Do not use syslog
-d, --errordest=DAEMON
Change stderr to a dest daemon
-e, --stderr=PRIORITY
Errors to stderr
-E, --no-stderr
Do not use stderr
-F, --errorfile=FILE
Change stderr to file
-h, --haltinit
Shutdown, and replace init with the exec task
-H, --halt
Halt system
-q, --reboot
Reboot system
-Q, --shutdown
Shutdown system
-D, --dump
Dump internal state
-S, --status=DAEMON
report status of DAEMON
-T, --tree
Dump internal tree state (for debugging)
--ABRT=DAEMON
Send signal to daemon
--ALRM=DAEMON
Send signal to daemon
--BUS=DAEMON
Send signal to daemon
--CHLD=DAEMON
Send signal to daemon
--CONT=DAEMON
Send signal to daemon
--FPE=DAEMON
Send signal to daemon
--HUP=DAEMON
Send signal to daemon
--ILL=DAEMON
Send signal to daemon
--INT=DAEMON
Send signal to daemon
--IO=DAEMON
Send signal to daemon
--IOT=DAEMON
Send signal to daemon
--KILL=DAEMON
Send signal to daemon
--PIPE=DAEMON
Send signal to daemon
--PROF=DAEMON
Send signal to daemon
--PWR=DAEMON
Send signal to daemon
--QUIT=DAEMON
Send signal to daemon
--SEGV=DAEMON
Send signal to daemon
--STKFLT=DAEMON
Send signal to daemon
--STOP=DAEMON
Send signal to daemon
--SYS=DAEMON
Send signal to daemon
--TERM=DAEMON
Send signal to daemon
--TRAP=DAEMON
Send signal to daemon
--TSTP=DAEMON
Send signal to daemon
--TTIN=DAEMON
Send signal to daemon
--TTOU=DAEMON
Send signal to daemon
--UNUSED=DAEMON
Send signal to daemon
--URG=DAEMON
Send signal to daemon
--USR1=DAEMON
Send signal to daemon
--USR2=DAEMON
Send signal to daemon
--VTALRM=DAEMON
Send signal to daemon
--WINCH=DAEMON
Send signal to daemon
--XCPU=DAEMON
Send signal to daemon
--XFSZ=DAEMON
Send signal to daemon
-?, --help
Give this help list
--usage
Give a short usage message
-V, --version
Print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
depinit is a program for managing services, some of which can be provided by
daemons. depctl sends commands to depinit. These commands can start a daemon
(and everything that it depends on), stop a daemon (and everything that depends
on it), stop everything that a daemon explicitly depends on, print the status
of a daemon or output the full state of depinit.
depinit can be run as a replacement for init, in which case its pid will be 1.
By default, depctl talks to pid 1, but it can talk to a different pid in case
depinit is running in test mode. The correct fifo can normally be found from
the pid, but if depinit is run from gdb, the fifo must be given explicitly.
The idea for this program came from simpleinit by Peter Orbaek, Werner
Almesberger, Richard Gooch and Matthias Benkmann. Thanks also Dr D. J.
Bernstein. His software is like lego for the internet, just as much fun
to play with, and makes this program usable.
AUTHOR
Written by Richard Lightman
Copyright 2002 Richard Lightman
This is free software; May be used and distributed under Version 2 of the GNU
public license see the source for copying conditions. There is NO warranty;
not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.