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
Wayne Stallwood wayne.stallwood@btinternet.com wrote:
SuSE seems to follow a different convention whereby the file is in=20 /etc/init.d/ and defines a different set of functions.
I think http://www.linuxbase.org/spec/refspecs/LSB_1.3.0/gLSB/gLSB/iniscrptfunc.html describes all that can be safely assumed, by the way.
Anything that assumes more is fair game for fixing, I think.