Hi, has anyone used /etc/init.d/skeleton in Debian 2.1 to build a startup
script?  I used the template... all I did was "fill in the blanks" so to
speak... and for some reason only the Start argument works, the other
options (stop/restart/rorce-reload) don't do anything except echo the
respective message to stdout.

I also tried using a pre-installed service (xntpd) to test the skeleton
template with.  IOW, I ran the skeleton script with the appropriate lines
inserted for the path to xntpd:

/etc/init.d# ./xntpdviaskel start
Starting XNTPD via Skeleton script: xntpd.
/etc/init.d# ps aux|grep xnt
root      1883  0.7  2.0   992   928  ?  S    01:31   0:00 /usr/sbin/xntpd
/etc/init.d# ./xntpdviaskel stop
Stopping XNTPD via Skeleton script: /etc/init.d#
/etc/init.d# ps aux|grep xnt
root      1883  0.2  2.0   992   928  ?  S    01:31   0:00 /usr/sbin/xntpd
/etc/init.d#


You can see that: a) the xntpd service was NOT stopped by the script, and b)
the "Stopping..." line didn't even LF at the end.

Considering that this script is part of the standard distr installation,
wouldn't this be considered a bug in the skeleton script?  AFAIK the only
lines that require modification are these three:

DAEMON=/usr/sbin/daemon
NAME=daemon
DESC="some daemon"


What changes must be made to this script in order to get it to work "as
advertised?"


Reply via email to