summaryrefslogtreecommitdiff
path: root/sysvinit/debian/cloud-init-local
diff options
context:
space:
mode:
Diffstat (limited to 'sysvinit/debian/cloud-init-local')
-rw-r--r--[-rwxr-xr-x]sysvinit/debian/cloud-init-local11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysvinit/debian/cloud-init-local b/sysvinit/debian/cloud-init-local
index a1685c1e..802ee8e9 100755..100644
--- a/sysvinit/debian/cloud-init-local
+++ b/sysvinit/debian/cloud-init-local
@@ -30,6 +30,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"