path: and_1.2.2-4.3/debian/and.init.d start-stop-daemon --start --make-pidfile --pidfile $PIDFILE --exec $DAEMON >/dev/null 2>&1 # Write correct pid into $PIDFILE pid=$( pidof $DAEMON ) echo "${pid}" > $PIDFILE errcode=$? path: and_1.2.2-4.3/debian/and.init.d # (works for all users) pid=$( /bin/pidof $DAEMON ) if [ "${pid}" = "" ] path: and_1.2.2-4.3/debian/and.init.d reload_server() { [ ! -f "$PIDFILE" ] && return 1 pid=pidofproc $PIDFILE # This is the daemon's pid # Send a SIGHUP kill -1 $pid