Changed pidof to pidof -s, suppressing install warning

This commit is contained in:
Rick Falkvinge
2017-01-04 17:03:19 +01:00
parent 361743fd7c
commit 92ff29512f
@@ -9,7 +9,7 @@ mkdir -p /var/lib/swarmops/upload
#if we're running systemd, use systemd;
#otherwise, use upstart
if [ -z $(pidof systemd) ]; then
if [ -z $(pidof -s systemd) ]; then
#start the daemon
/etc/init.d/swarmops-backend start
#register the daemon