]> git.pld-linux.org Git - packages/entrance.git/blame - entrance.init
- unified preamble in %changelog
[packages/entrance.git] / entrance.init
CommitLineData
1ad48481 1#!/bin/sh
2#
3# entrance: Starts the Enlighted Display Manager
4#
5# Version: @(#) /etc/rc.d/init.d/entrance 0.1
6#
5b225d5c 7# chkconfig: 5 99 1
1ad48481 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
18if [ -f /etc/sysconfig/entrance ]; then
19 . /etc/sysconfig/entrance
20fi
21
22RETVAL=0
23# See how we were called.
24case "$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"
1b4fb99a 29 /usr/share/entrance/build_config.sh > /dev/null
8aedbe89 30 if [ -r /etc/entrance_config.cfg ]; then
1ad48481 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
62esac
63
64exit $RETVAL
This page took 0.09968 seconds and 4 git commands to generate.