pipe-tools
Software
www.skarnet.org
The npt-svc program
npt-svc sends control commands to services monitored by
npt-supervise,
supervise or
runsv. It is an
enhanced version of the
svc command.
Interface
npt-svc -bytes servicedir...
- npt-svc sends the bytes control commands
to every service directory in servicedir.... It prints
a warning message if it cannot make it for some reason.
- It exits 100 if it is misused. It normally exits 0; add 1 if it
encounters a temporary error; add 2 if it is called on a
non-supervised directory; add 4 if a directory name is too long.
Control
The recognized options in bytes are the following:
- u
- Up.
- d
- Down.
- o
- Once.
- t
- Terminate (SIGTERM).
- p
- Pause (SIGSTOP).
- c
- Continue (SIGCONT).
- a
- Alarm (SIGALRM).
- b
- Abort (SIGABRT). Unrecognized by supervise and runsv.
- q
- Quit (SIGQUIT). Unrecognized by supervise and runsv.
- h
- Hangup (SIGHUP).
- i
- Interrupt (SIGINT).
- k
- Kill (SIGKILL).
- 1
- User-defined 1 (SIGUSR1) Unrecognized by supervise.
- 2
- User-defined 2 (SIGUSR2). Unrecognized by supervise.
- f
- Enable finish. Unrecognized by supervise and runsv.
- F
- Disable finish. Unrecognized by supervise and runsv.
- x
- Exit.