      if [ ! -s "$logfile" ] ; then
          echo "(This file should be empty unless there's a catastrophic failure.)" >> "$logfile"
      fi
-@@ -64,24 +65,21 @@
+@@ -64,24 +63,21 @@
         -c "$exec --daemon --pid-file '$pidfile' --dsn '@$config' $options" \
  	>> "$logfile" 2>&1 &
      retval=$?

--- pscheduler-server.orig/daemons/init.d-template.raw	2018-03-07 08:53:33.930096026 +0100
+++ pscheduler-server/daemons/init.d-template.raw	2018-03-07 08:53:33.922096030 +0100
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash

 # Short-Description: Run pscheduler __PROG__
 # Description: pScheduler __PROG__ daemon
 ### END INIT INFO
@@ -23,21 +25,18 @@
 proguser=__PSUSER__
 
 pidfile=__VAR__/run/pscheduler-$prog.pid
