diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/plptools.conf | 4 | ||||
-rw-r--r-- | debian/plptools.init | 22 |
2 files changed, 17 insertions, 9 deletions
diff --git a/debian/plptools.conf b/debian/plptools.conf index 53dbacb..53de0b3 100644 --- a/debian/plptools.conf +++ b/debian/plptools.conf @@ -1,4 +1,8 @@ # +# Set this to yes, if you want to start ncpd during boot. +# +START_NCPD=yes +# # Add any arguments for ncpd here. See ncpd(8) for info about possible # arguments. # diff --git a/debian/plptools.init b/debian/plptools.init index 7c250d4..5e0f80d 100644 --- a/debian/plptools.init +++ b/debian/plptools.init @@ -20,11 +20,13 @@ set -e case "$1" in start) - echo -n "Starting $DESC ($DAEMON1): " - start-stop-daemon --start --quiet \ - --exec $DAEMON1 -- $NCPD_ARGS && \ - echo -n "done" || echo -n "already running" - echo "." + if test "$START_NCPD" = "yes" ; then + echo -n "Starting $DESC ($DAEMON1): " + start-stop-daemon --start --quiet \ + --exec $DAEMON1 -- $NCPD_ARGS && \ + echo -n "done" || echo -n "already running" + echo "." + fi if test "$START_PLPNFSD" = "yes" ; then echo -n "Starting $DESC ($DAEMON2): " start-stop-daemon --start --quiet \ @@ -54,10 +56,12 @@ case "$1" in echo -n "done" || echo -n "already stopped" echo "." fi - echo -n "Stopping $DESC ($DAEMON1): " - start-stop-daemon --stop --quiet --exec $DAEMON1 && \ - echo -n "done" || echo -n "already stopped" - echo "." + if test "$START_NCPD" = "yes" ; then + echo -n "Stopping $DESC ($DAEMON1): " + start-stop-daemon --stop --quiet --exec $DAEMON1 && \ + echo -n "done" || echo -n "already stopped" + echo "." + fi ;; #reload) |