diff --git a/BuildFiles/Packaging/templates/postinst-backend.template b/BuildFiles/Packaging/templates/postinst-backend.template index c1412561..f0cbc653 100644 --- a/BuildFiles/Packaging/templates/postinst-backend.template +++ b/BuildFiles/Packaging/templates/postinst-backend.template @@ -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