Merge pull request #2207 from rrobgill/service-pihole-FTL-status-(sysV)

Fix service pihole-FTL status (sysV)
This commit is contained in:
Mark Drobnak 2018-06-02 11:23:38 -04:00 committed by GitHub
commit c11e643f13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,13 +69,25 @@ stop() {
echo
}
# Indicate the service status
status() {
if is_running; then
echo "[ ok ] pihole-FTL is running"
exit 0
else
echo "[ ] pihole-FTL is not running"
exit 1
fi
}
### main logic ###
case "$1" in
stop)
stop
;;
status)
status pihole-FTL
status
;;
start|restart|reload|condrestart)
stop