~ubuntu-branches/debian/stretch/fuel-agent/stretch

« back to all changes in this revision

Viewing changes to debian/fuel-agent.init

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2016-03-16 17:12:17 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20160316171217-p5b360dfuxm5yidy
Tags: 9.0~0+2016.03.09.git.b1ba4b7747+dfsg1-1
* New upstream release based on commit b1ba4b7747.
* Uploading to unstable.
* Lots of tweaks to make Debian provisionning works.
* Standards-Version: 3.9.7 (no change).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
### BEGIN INIT INFO
3
 
# Provides:          fuel-agent
4
 
# Required-Start:    $network $local_fs $remote_fs $syslog
5
 
# Required-Stop:     $remote_fs
6
 
# Default-Start:     2 3 4 5
7
 
# Default-Stop:      0 1 6
8
 
# Short-Description: Fuel Agent
9
 
# Description:       Fuel Agent
10
 
### END INIT INFO
11
 
 
12
 
# Author: Thomas Goirand <zigo@debian.org>
13
 
DESC="Fuel-Agent fix configs on startup"
14
 
NAME=fa_fix-configs-on-startup
15
 
DAEMON=/usr/bin/${NAME}
16
 
 
17
 
. /lib/lsb/init-functions
18
 
 
19
 
[ -x /usr/bin/${NAME} ] || exit 0
20
 
 
21
 
case "$1" in
22
 
start)
23
 
        log_daemon_msg "Starting $DESC" "$NAME"
24
 
        ${DAEMON}
25
 
        case $? in
26
 
                0|1) log_end_msg 0 ;;
27
 
                2) log_end_msg 1 ;;
28
 
        esac
29
 
;;
30
 
stop|status|restart|force-reload)
31
 
;;
32
 
*)
33
 
        echo "Usage: $0 {start|stop|status|restart|force-reload|systemd-start}" >&2
34
 
;;
35
 
esac
36
 
 
37
 
exit 0