#! /bin/sh fileprocess=/usr/sbin/fileprocess test -x "$fileprocess" || exit 0 case "$1" in start) echo -n "Starting fileprocess daemon" start-stop-daemon --start --background --exec $fileprocess echo "." ;; stop) echo -n "Stopping fileprocess daemon" start-stop-daemon --stop --name fileprocess echo "." ;; *) echo "Usage: /etc/init.d/S91fileprocess {start|stop}" exit 1 esac exit 0