Sophie

Sophie

distrib > PLD > ra > i386 > media > dist-src > by-pkgid > 49b138d20e5c752359965edd5808ac6a > files > 5

capsel-2.0-rc1.7.src.rpm

#!/bin/sh
#
# capsel	This shell script takes care of starting and stopping arpd
#
# chkconfig:    2345 09 91
# description:	supports Linux-Privs security model
# processname:	capsel

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
	if [ ! -f /var/lock/subsys/capsel ]; then
		msg_starting capsel
		modprobe capsel
		daemon capsel -c
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/capsel
	else
		msg_already_running capsel
	fi
	;;
  stop)
	if [ -f /var/lock/subsys/capsel ]; then
		msg_stopping capsel
		busy
		rmmod capsel
		ok
		rm -f /var/lock/subsys/capsel >/dev/null 2>&1
	else
		msg_not_running capsel
		exit 1
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload)
	capsel -c
  	;;
  status)
  	capsel -s
	;;
  *)
	msg_usage "$0 {start|stop|restart|reload|status}"
	exit 1
esac