Mailinglist Archive: opensuse (3138 mails)

< Previous Next >
/etc/rc.config
  • From: Erik Jakobsen <eja@xxxxxxxxxxx>
  • Date: Mon, 06 Dec 2004 17:35:25 +0100
  • Message-id: <41B48A4D.6080807@xxxxxxxxxxx>
Hi.

In my SuSE 9.1, I have a file /etc/rc.config.

This is not the case in SuSE 9.2.

How is the rc.config job being done here ?.

I have a file, that needs the /etc/rc.config:

#! /bin/sh
#
# /sbin/init.d/fbb
#

. /etc/rc.config

base=${0##*/}
link=${base#*[SK][0-9][0-9]}

test $link = $base && START_FBB=yes
test "$START_FBB" = yes || exit 0

test -x /usr/sbin/fbb || exit 0

return=$rc_done
case "$1" in
start)
echo -n "Starting FBB daemon"
if [ -f /etc/ax25/fbb.conf ] ; then
startproc /usr/sbin/fbb -s -l /tmp/fbb.log || return=$rc_failed
else
return=$rc_failed
fi
echo -e "$return"
;;
stop)
echo -n "Shutting down FBB daemon"
killproc -TERM /usr/sbin/fbb || return=$rc_failed
sleep 4
echo -e "$return"
;;
restart|reload)
$0 stop && $0 start || return=$rc_failed
;;
status)
echo -n "Checking for FBB daemon : "
checkproc /usr/sbin/fbb && echo "FBB is up" || echo "No FBB daemon"
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
exit 1
esac

test "$return" = "$rc_done" || exit 1
exit 0


What can I do ?.

Erik Jakobsen

< Previous Next >
Follow Ups