]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
debian: tvheadend.init - add status, fixes #3208
authorJaroslav Kysela <perex@perex.cz>
Mon, 26 Oct 2015 11:23:36 +0000 (12:23 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 26 Oct 2015 11:23:36 +0000 (12:23 +0100)
debian/tvheadend.init

index 73da2ea78b2da3f222b3c0629ce1eff4c9531296..c3abbf76febd4ec95e5593cf7f2b6fd00ec7cb26 100644 (file)
@@ -122,6 +122,9 @@ case "$1" in
                ;;
        esac
        ;;
+  status)
+        status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
+        ;;
   *)
        echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
        exit 3