]> git.pld-linux.org Git - packages/capsel.git/blame - capsel.init
- tabs in preamble
[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
eaf2ec04 12RETVAL=0
b5cb06e6
PG
13# See how we were called.
14case "$1" in
15 start)
16 if [ ! -f /var/lock/subsys/capsel ]; then
eaf2ec04 17 _modprobe single capsel
b5cb06e6 18 msg_starting capsel
fefdbf7e 19 daemon capsel -c
b5cb06e6
PG
20 RETVAL=$?
21 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/capsel
22 else
23 msg_already_running capsel
24 fi
25 ;;
26 stop)
27 if [ -f /var/lock/subsys/capsel ]; then
28 msg_stopping capsel
29 busy
30 rmmod capsel
31 ok
32 rm -f /var/lock/subsys/capsel >/dev/null 2>&1
33 else
34 msg_not_running capsel
b5cb06e6
PG
35 fi
36 ;;
37 restart)
38 $0 stop
39 $0 start
eaf2ec04 40 exit $?
b5cb06e6 41 ;;
eaf2ec04 42 reload|force-reload)
b5cb06e6
PG
43 capsel -c
44 ;;
45 status)
fefdbf7e 46 capsel -s
b5cb06e6
PG
47 ;;
48 *)
eaf2ec04 49 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
50 exit 3
b5cb06e6 51esac
eaf2ec04 52
53exit $RETVAL
This page took 0.066309 seconds and 4 git commands to generate.