svc - misc improvements
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 11 Nov 2014 07:47:47 +0000 (23:47 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 11 Nov 2014 07:47:47 +0000 (23:47 -0800)
commitee6361d4f8affdab1a874c4106e2bf806e4f8917
tree1e57049ae01ff24d1e4a2a7abfc94e85013d5d3c
parent3e2ea4cc5fd8b67429568b998b3ea93f5740e157
svc - misc improvements

* Disallow extremely dangerous command sequences like 'svc exit' without
  a label (which would wildcard everything).

* Allow the label to be specified as 'all' for when you really want to
  operate on everything with a dangerous command.

* Clean up the socket and pid files on normal exit/kill, even if the
  service is not present.

* Add 'help' directive and -h option to cover our bases.
sbin/svc/execute.c
sbin/svc/remote.c
sbin/svc/subs.c
sbin/svc/svc.8
sbin/svc/svc.c
sbin/svc/svc.h