]> git.pld-linux.org Git - packages/capsel.git/blame - capsel.init
- added init script
[packages/capsel.git] / capsel.init
CommitLineData
b5cb06e6
PG
1#!/bin/sh
2#
3# capsel This shell script takes care of starting and stopping arpd
4#
5# chkconfig: 2345 09 91
6# description: supports Linux-Privs security model
7# processname: capsel
8
9# Source function library.
10. /etc/rc.d/init.d/functions
11
12# See how we were called.
13case "$1" in
14 start)
15 if [ ! -f /var/lock/subsys/capsel ]; then
16 msg_starting capsel
17 modprobe capsel
18 daemon capsel
19 RETVAL=$?
20 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/capsel
21 else
22 msg_already_running capsel
23 fi
24 ;;
25 stop)
26 if [ -f /var/lock/subsys/capsel ]; then
27 msg_stopping capsel
28 busy
29 rmmod capsel
30 ok
31 rm -f /var/lock/subsys/capsel >/dev/null 2>&1
32 else
33 msg_not_running capsel
34 exit 1
35 fi
36 ;;
37 restart)
38 $0 stop
39 $0 start
40 ;;
41 reload)
42 capsel -f
43 capsel -c
44 ;;
45 status)
46 echo "no status avaible yet..."
47 ;;
48 *)
49 msg_usage "$0 {start|stop|restart|reload|status}"
50 exit 1
51esac
This page took 0.096532 seconds and 4 git commands to generate.