- # Use the daemon package to turn this script into a daemon
- start-stop-daemon --start --quiet --pidfile $PIDFILE \
- --oknodo --exec /usr/bin/daemon /usr/bin/daemon $SCRIPTNAME check_mpt
+ # Use daemonize to turn it into a daemon and start it with daemon().
+ daemon --pidfile $PIDFILE /usr/sbin/daemonize $SCRIPTNAME check_mpt