~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to utopic/etc/init.d/dotdee

  • Committer: Dimitri John Ledkov
  • Date: 2014-05-06 18:45:46 UTC
  • Revision ID: dimitri.ledkov@canonical.com-20140506184546-5toyx56xxrue0f0v
auto update

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Start/stop dotdee daemon
 
3
# chkconfig: 2345 60 80
 
4
 
 
5
### BEGIN INIT INFO
 
6
# Provides:          dotdee
 
7
# Required-Start:    $local_fs
 
8
# Required-Stop:     $local_fs
 
9
# Default-Start:     2 3 4 5
 
10
# Default-Stop:      0 1 6
 
11
# Short-Description: Converting a flatfile into a dynamically generated file.
 
12
# Description:       It is generated from a .d directory.
 
13
### END INIT INFO
 
14
 
 
15
# Get LSB functions
 
16
. /lib/lsb/init-functions
 
17
 
 
18
case "$1" in
 
19
    start)
 
20
            echo "Starting dotdee..."
 
21
        [ -f /etc/default/dotdee ] && . /etc/default/dotdee
 
22
        if [ "$INOTIFY" = "1" ]; then
 
23
                exec iwatch -f /etc/dotdee.xml -p /var/run/dotdee.pid
 
24
        fi
 
25
        ;;
 
26
    reload)
 
27
        echo "Reloading dotdee..."
 
28
#        start-stop-daemon --stop --signal HUP -x dotdee --oknodo
 
29
        ;;
 
30
    restart|force-reload)
 
31
        $0 stop
 
32
        $0 start
 
33
        ;;
 
34
    stop)
 
35
#        start-stop-daemon --stop -x dotdee --oknodo
 
36
        ;;
 
37
    *)
 
38
        echo "Usage: $0 start|stop|restart" >&2
 
39
        exit 3
 
40
        ;;
 
41
esac