Hi, On Wed, Mar 01 2000 at 17:56 +0100, Yatsen Ng wrote:
after all. How do I add it to
/sbin/init.d/
so that it starts up during boot?
Create a script /etc/init.d/ijb that starts junkbuster. Mine looks like this: ---------------------------------------------------------------> #! /bin/sh # # /sbin/init.d/ijb # . /etc/rc.config base=${0##*/} link=${base#*[SK][0-9][0-9]} test $link = $base && START_IJB=yes test "$START_IJB" = "yes" || exit 0 return=$rc_done case "$1" in start) echo -n "Starting The Internet Junkbuster" startproc -u nobody -g nogroup /usr/local/sbin/junkbuster /etc/ijb/config || return=$rc_failed echo -e "$return" ;; stop) echo -n "Shutting down The Internet Junkbuster" killproc -TERM /usr/local/sbin/junkbuster || return=$rc_failed echo -e "$return" ;; restart|reload) $0 stop && $0 start || return=$rc_failed ;; status) checkproc /usr/local/sbin/junkbuster && echo OK || echo No process ;; *) echo "Usage: $0 {start|restart|status|stop}" exit 1 esac test "$return" = "$rc_done" || exit 1 exit 0 <--------------------------------------------------------------- Then create symbolic links in the runlevel directories (see /sbin/init.d/README for details) [sttr]/sbin/init.d> l **/*ijb* -rwxr-xr-x 1 root root 875 Feb 25 19:50 ijb* lrwxrwxrwx 1 root root 6 Jan 20 19:54 rc2.d/K09ijb -> ../ijb* lrwxrwxrwx 1 root root 6 Jan 20 19:54 rc2.d/S21ijb -> ../ijb* lrwxrwxrwx 1 root root 6 Jan 20 19:54 rc3.d/K09ijb -> ../ijb* lrwxrwxrwx 1 root root 6 Jan 20 19:54 rc3.d/S21ijb -> ../ijb* And finally, add ----------------------> # # Start junkbuster? # START_IJB=yes <---------------------- to /etc/rc.config. Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/