Could somebody please mail me a copy of this file.
SuSE seems to follow a different convention whereby the file is in /etc/init.d/ and defines a different set of functions.
For example in my version there is no gprintf function
Most of my system scripts work as such (using rc.status)
case "$1" in start) echo -n "Starting snmpd:" startproc $SNMPD -c /etc/ucdsnmpd.conf -r -A -l /var/log/ucd-snmpd.log -P /var/run/snmpd.pid rc_status -v ;; stop) echo -n "Shutting down snmpd:" killproc -TERM $SNMPD rc_status -v ;;
etc...etc
The one I want to add is like the following
case "$1" in start) # Start daemon. gprintf "Starting spamd: " daemon spamd -d -c -a RETVAL=$? touch /var/lock/spamd echo ;; stop) # Stop daemons. gprintf "Shutting down spamd: " killproc spamd RETVAL=$? rm -f /var/lock/spamd echo ;;
Which way is the "right" way and why oh why are their two seemingly incompatible ways. Gahhhh For now I have converted the bottom script to work like the top one.
Wayne