summaryrefslogtreecommitdiff
path: root/sysvinit/debian/cloud-init
diff options
context:
space:
mode:
Diffstat (limited to 'sysvinit/debian/cloud-init')
-rwxr-xr-xsysvinit/debian/cloud-init14
1 files changed, 13 insertions, 1 deletions
diff --git a/sysvinit/debian/cloud-init b/sysvinit/debian/cloud-init
index 15ffeb2e..48fa0423 100755
--- a/sysvinit/debian/cloud-init
+++ b/sysvinit/debian/cloud-init
@@ -10,7 +10,8 @@
# Description: Cloud configuration initialization
### END INIT INFO
-# Author: Julien Danjou <acid@debian.org>
+# Authors: Julien Danjou <acid@debian.org>
+# Thomas Goirand <zigo@debian.org>
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Cloud service"
@@ -30,6 +31,17 @@ SCRIPTNAME=/etc/init.d/$NAME
# and status_of_proc is working.
. /lib/lsb/init-functions
+if init_is_upstart; then
+ case "$1" in
+ stop)
+ exit 0
+ ;;
+ *)
+ exit 1
+ ;;
+ esac
+fi
+
case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"