]> git.pld-linux.org Git - packages/coda.git/blob - coda.auth2.init
a355eb0d9b18b43668800bfffec08d01ee9fe436
[packages/coda.git] / coda.auth2.init
1 #!/bin/sh
2 #
3 # auth2         
4 #
5 # chkconfig:    345 95 01
6 #
7 # description:  The Coda authentication server
8 #
9
10 # Source function library
11 . /etc/rc.d/init.d/functions
12
13 # Get network config
14 . /etc/sysconfig/network
15
16 # Check that networking is up
17 if is_no "${NETWORKING}"; then
18     msg_network_down auth2
19     exit 1
20 fi
21
22 case "$1" in
23     start)
24         # Check if the service is already running?
25         if [ -f /var/lock/subsys/auth2 ]; then
26             msg_already_running auth2
27         else
28             msg_starting auth2
29             daemon auth2
30             RETVAL=$?
31             [ RETVAL -eq 0 ] && touch /var/lock/subsys/auth2
32         fi
33         ;;
34     stop)
35         if [ -f /var/lock/subsys/auth2 ]; then
36             msg_stopping auth2
37             killproc auth2
38             rm -f /var/lock/subsys/auth2
39         else
40             msg_Not_Running auth2
41         fi
42         ;;
43     restart)
44         $0 stop
45         $0 start
46         ;;
47     *)
48         msg_usage "$0 {start|stop|restart}"
49         exit 1
50         ;;
51 esac
52
53 exit $RETVAL
54
This page took 0.097979 seconds and 3 git commands to generate.