[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem with daemon (Was: ITP: ssd)



On Thu, 25 Nov 1999, Torsten Landschoff wrote:

> > The driver from APC is Open source under GPL.  There are RPMs
> > but no Debian package yet.  Do you think it would make sense
> > to integrate it into Debian?
> 
> I would say go for it. And I will be one of it's first users ;)
It seems I would need at first some helpers.  I managed to bundle
a lintian clean package from the source but unfortunately the
daemon doesn't start.

I installed a file /etc/init.d/ssd which contains the following

DAEMON=/sbin/ssd
PIDFILE=/var/run/ssd.pid

test -x $DAEMON || exit 0

case "$1" in
  start)
        # Start daemons.
	echo -n "Starting APC Simple Signalling Daemon: "
	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- /etc/ssd.conf
	echo "."
        ;;

The original startup procedure was done in /etc/rc.d/init.d and the
starter locked as

. /etc/rc.d/init.d/functions
### This I left out ... there is no "functions" file installed by the
### package and no so called file in Debian ... seems to be nonsense

case "$1" in
  start)
        # Start daemons.
        echo -n "Starting APC Simple Signalling Daemon: "
        daemon ssd /etc/ssd.conf
### daemon doesn't exist but start-stop-daemon does the job in debian
        echo
        touch /var/lock/subsys/ssd
### I left this out because the more clever usage of PIDFILE in Debian

Unfortunately after starting "/etc/init.d/ssd start" there is no
such PID file and "ps x | grep ssd" remains blank.  Could anybody
give a hint what might be wrong.

It's the first time I deal with daemons myself.

Kind regards

          Andreas.



Reply to: