]> git.pld-linux.org Git - packages/entrance.git/blob - entrance.init
- pl for themes, strict internal deps
[packages/entrance.git] / entrance.init
1 #!/bin/sh
2 #
3 # entrance:     Starts the Enlighted Display Manager
4 #
5 # Version:      @(#) /etc/rc.d/init.d/entrance 0.1
6 #
7 # chkconfig:    5 95 5
8 # description:  Starts and stops the Enlighted Display Manager at startup and \
9 #               shutdown..
10 #
11 # config:       /etc/X11/entrance/build_config.sh.in
12 # probe:        true
13 # hide:         true
14
15 . /etc/rc.d/init.d/functions
16
17 # Get service config
18 if [ -f /etc/sysconfig/entrance ]; then
19         . /etc/sysconfig/entrance
20 fi
21
22 RETVAL=0
23 # See how we were called.
24 case "$1" in
25   start)
26         # Check if the service is already running?
27         if [ ! -f /var/lock/subsys/entrance ]; then
28                 msg_starting "Enlightened Display Manager"
29                 /etc/X11/entrance/generate-config
30                 if [ -r /var/lib/entrance/entrance_config.cfg ]; then
31                         daemon /usr/sbin/entranced
32                         RETVAL=$?
33                         [ $RETVAL -eq 0 ] && touch /var/lock/subsys/entrance
34                 else
35                         fail
36                 fi
37         else
38                 msg_already_running "Enlightened Display Manager"
39         fi
40         ;;
41   stop)
42         if [ -f /var/lock/subsys/entrance ]; then
43                 msg_stopping "Enlightened Display Manager"
44                 killproc entranced
45                 rm -f /var/lock/subsys/entrance
46         else
47                 msg_not_running "Enlightened Display Manager"
48         fi
49         ;;
50   status)
51         status entranced
52         exit $?
53         ;;
54   restart|force-reload)
55         $0 stop
56         $0 start
57         exit $?
58         ;;
59   *)
60         msg_usage "$0 {start|stop|restart|force-reload|status}"
61         exit 3
62 esac
63
64 exit $RETVAL
This page took 0.183313 seconds and 3 git commands to generate.