git: svc - misc improvements

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Nov 10 23:49:43 PST 2014


commit ee6361d4f8affdab1a874c4106e2bf806e4f8917
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Nov 10 23:47:47 2014 -0800

    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.

Summary of changes:
 sbin/svc/execute.c | 21 ++++++++++++++++++++-
 sbin/svc/remote.c  |  6 ++++++
 sbin/svc/subs.c    | 11 +++++++++++
 sbin/svc/svc.8     | 12 ++++++++++--
 sbin/svc/svc.c     | 52 +++++++++++++++++++++++++++++++++++++++++++++++-----
 sbin/svc/svc.h     |  4 ++++
 6 files changed, 98 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ee6361d4f8affdab1a874c4106e2bf806e4f8917


-- 
DragonFly BSD source repository



More information about the Commits mailing list