~ubuntu-branches/ubuntu/utopic/gnustep-base/utopic

« back to all changes in this revision

Viewing changes to debian/gnustep-base-runtime.gdomap.in

  • Committer: Package Import Robot
  • Author(s): Paul Gevers
  • Date: 2014-07-19 13:02:18 UTC
  • mfrom: (20.1.6 utopic-proposed)
  • Revision ID: package-import@ubuntu.com-20140719130218-pn967l7wzjjf90yi
Tags: 1.24.6-2ubuntu1
* debian/rules:
  - Print the config.log if configure fails to debug
    powerpc/ppc64el FTBFS. (LP: #1277975)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
# Description: Start the GNUstep distributed object mapper
10
10
### END INIT INFO
11
11
 
12
 
set -e
13
 
set -u
14
 
 
15
12
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
16
13
 
17
14
DAEMON=@GDOMAP@
20
17
 
21
18
PIDFILE=/var/run/$NAME.pid
22
19
 
 
20
ENABLED=no
23
21
GDOMAP_ARGS=
24
 
if [ -f /etc/default/gdomap ]; then
25
 
    . /etc/default/gdomap
 
22
if [ -f /etc/default/$NAME ]; then
 
23
    . /etc/default/$NAME
26
24
fi
27
25
 
28
26
. /lib/lsb/init-functions
29
27
 
30
28
case "$1" in
31
29
  start)
32
 
        echo -n "Starting $DESC: "
 
30
        if [ "$ENABLED" = "no" ]; then
 
31
            log_action_msg "$DESC disabled, see /etc/default/$NAME"
 
32
            exit 0
 
33
        fi
 
34
        log_daemon_msg "Starting $DESC" $NAME
33
35
        start-stop-daemon --start --oknodo --quiet --exec $DAEMON \
34
36
                -- -I $PIDFILE $GDOMAP_ARGS
35
 
        echo "$NAME."
 
37
        log_end_msg $?
36
38
        ;;
37
39
  stop)
38
 
        echo -n "Stopping $DESC: "
 
40
        if [ "$ENABLED" = "no" ]; then
 
41
            log_action_msg "$DESC disabled"
 
42
            exit 0
 
43
        fi
 
44
        log_daemon_msg "Stopping $DESC" $NAME
39
45
        start-stop-daemon --stop --oknodo --quiet --exec $DAEMON \
40
46
                -- -I $PIDFILE $GDOMAP_ARGS
41
47
        rm -f $PIDFILE
42
 
        echo "$NAME."
 
48
        log_end_msg $?
43
49
        ;;
44
50
  restart|force-reload)
45
 
        echo -n "Restarting $DESC: "
46
 
        start-stop-daemon --stop --oknodo --quiet --exec $DAEMON \
47
 
                -- -I $PIDFILE $GDOMAP_ARGS
48
 
        rm -f $PIDFILE
 
51
        $0 stop
49
52
        sleep 1
50
 
        start-stop-daemon --start --oknodo --quiet --exec $DAEMON \
51
 
                -- -I $PIDFILE $GDOMAP_ARGS
52
 
        echo "$NAME."
 
53
        $0 start
53
54
        ;;
54
55
  status)
55
56
        status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
56
57
        ;;
57
58
  *)
58
59
        N=/etc/init.d/$NAME
59
 
        echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
 
60
        log_action_msg "Usage: $N {start|stop|restart|force-reload|status}"
60
61
        exit 1
61
62
        ;;
62
63
esac