X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=debian%2Fmetaproxy.init;fp=debian%2Fmetaproxy.init;h=7c54cc9407170a7534dcc41ea65c2e7a436b46ee;hb=17f8ca9a9804a97ae18399940262e625291ce368;hp=67743dd7fc780d76af263d32da059121a53e7682;hpb=586d78659d671683f33ec55f4a7d32b28e345ccd;p=metaproxy-moved-to-github.git diff --git a/debian/metaproxy.init b/debian/metaproxy.init index 67743dd..7c54cc9 100644 --- a/debian/metaproxy.init +++ b/debian/metaproxy.init @@ -88,7 +88,8 @@ do_reload() { # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. - # + + $DAEMON -t $DAEMON_OPTS > /dev/null || return 2 start-stop-daemon --stop --signal USR1 --quiet --retry=5 --pidfile $PIDFILE --name $NAME RETVAL="$?" # Return if daemon could not be stopped @@ -157,6 +158,10 @@ case "$1" in ;; esac ;; + checkconfig) + $DAEMON -t $DAEMON_OPTS > /dev/null || exit 2 + exit 0 + ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;;