← Back to team overview

cloud-init-dev team mailing list archive

[Merge] lp:~juergh/cloud-init/add-debian-init-scripts into lp:cloud-init

 

Juerg Haefliger has proposed merging lp:~juergh/cloud-init/add-debian-init-scripts into lp:cloud-init.

Requested reviews:
  cloud init development team (cloud-init-dev)

For more details, see:
https://code.launchpad.net/~juergh/cloud-init/add-debian-init-scripts/+merge/174943

This merge request adds init scripts for Debian
-- 
https://code.launchpad.net/~juergh/cloud-init/add-debian-init-scripts/+merge/174943
Your team cloud init development team is requested to review the proposed merge of lp:~juergh/cloud-init/add-debian-init-scripts into lp:cloud-init.
=== added directory 'sysvinit/debian'
=== added file 'sysvinit/debian/cloud-config'
--- sysvinit/debian/cloud-config	1970-01-01 00:00:00 +0000
+++ sysvinit/debian/cloud-config	2013-07-16 07:57:27 +0000
@@ -0,0 +1,52 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          cloud-config
+# Required-Start:    cloud-init cloud-init-local
+# Required-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Cloud init modules --mode config
+# Description:       Cloud configuration initialization
+### END INIT INFO
+
+# Authors: Julien Danjou <acid@xxxxxxxxxx>
+#          Juerg Haefliger <juerg.haefliger@xxxxxx>
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="Cloud service"
+NAME=cloud-init
+DAEMON=/usr/bin/$NAME
+DAEMON_ARGS="modules --mode config"
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
+# and status_of_proc is working.
+. /lib/lsb/init-functions
+
+case "$1" in
+start)
+	log_daemon_msg "Starting $DESC" "$NAME"
+	$DAEMON ${DAEMON_ARGS}
+	case "$?" in
+		0|1) log_end_msg 0 ;;
+		2) log_end_msg 1 ;;
+	esac
+;;
+stop|restart|force-reload)
+	echo "Error: argument '$1' not supported" >&2
+	exit 3
+;;
+*)
+	echo "Usage: $SCRIPTNAME {start}" >&2
+	exit 3
+;;
+esac
+
+:

=== added file 'sysvinit/debian/cloud-final'
--- sysvinit/debian/cloud-final	1970-01-01 00:00:00 +0000
+++ sysvinit/debian/cloud-final	2013-07-16 07:57:27 +0000
@@ -0,0 +1,54 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          cloud-final
+# Required-Start:    $all cloud-config
+# Required-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Cloud init modules final jobs
+# Description:       This runs the cloud configuration initialization "final" jobs
+#                    and can be seen as the traditional "rc.local" time for the cloud.
+#                    It runs after all cloud-config jobs are run
+### END INIT INFO
+
+# Authors: Julien Danjou <acid@xxxxxxxxxx>
+#          Juerg Haefliger <juerg.haefliger@xxxxxx>
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="Cloud service"
+NAME=cloud-init
+DAEMON=/usr/bin/$NAME
+DAEMON_ARGS="modules --mode final"
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
+# and status_of_proc is working.
+. /lib/lsb/init-functions
+
+case "$1" in
+start)
+	log_daemon_msg "Starting $DESC" "$NAME"
+	$DAEMON ${DAEMON_ARGS}
+	case "$?" in
+		0|1) log_end_msg 0 ;;
+		2) log_end_msg 1 ;;
+	esac
+;;
+stop|restart|force-reload)
+	echo "Error: argument '$1' not supported" >&2
+	exit 3
+;;
+*)
+	echo "Usage: $SCRIPTNAME {start}" >&2
+	exit 3
+;;
+esac
+
+:

=== added file 'sysvinit/debian/cloud-init'
--- sysvinit/debian/cloud-init	1970-01-01 00:00:00 +0000
+++ sysvinit/debian/cloud-init	2013-07-16 07:57:27 +0000
@@ -0,0 +1,52 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          cloud-init
+# Required-Start:    $local_fs $remote_fs $syslog $network cloud-init-local
+# Required-Stop:     $remote_fs
+# X-Start-Before:    sshd
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Cloud init
+# Description:       Cloud configuration initialization
+### END INIT INFO
+
+# Author: Julien Danjou <acid@xxxxxxxxxx>
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="Cloud service"
+NAME=cloud-init
+DAEMON=/usr/bin/$NAME
+DAEMON_ARGS="init"
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
+# and status_of_proc is working.
+. /lib/lsb/init-functions
+
+case "$1" in
+    start)
+	log_daemon_msg "Starting $DESC" "$NAME"
+	$DAEMON ${DAEMON_ARGS}
+	case "$?" in
+	    0|1) log_end_msg 0 ;;
+	    2) log_end_msg 1 ;;
+	esac
+	;;
+    stop|restart|force-reload)
+        echo "Error: argument '$1' not supported" >&2
+        exit 3
+        ;;
+    *)
+	echo "Usage: $SCRIPTNAME {start}" >&2
+	exit 3
+	;;
+esac
+
+:

=== added file 'sysvinit/debian/cloud-init-local'
--- sysvinit/debian/cloud-init-local	1970-01-01 00:00:00 +0000
+++ sysvinit/debian/cloud-init-local	2013-07-16 07:57:27 +0000
@@ -0,0 +1,52 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          cloud-init-local
+# Required-Start:    $local_fs $remote_fs
+# Required-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Cloud init local
+# Description:       Cloud configuration initialization
+### END INIT INFO
+
+# Authors: Julien Danjou <acid@xxxxxxxxxx>
+#          Juerg Haefliger <juerg.haefliger@xxxxxx>
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="Cloud service"
+NAME=cloud-init
+DAEMON=/usr/bin/$NAME
+DAEMON_ARGS="init --local"
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
+# and status_of_proc is working.
+. /lib/lsb/init-functions
+
+case "$1" in
+start)
+	log_daemon_msg "Starting $DESC" "$NAME"
+	$DAEMON ${DAEMON_ARGS}
+	case "$?" in
+		0|1) log_end_msg 0 ;;
+		2) log_end_msg 1 ;;
+	esac
+;;
+stop|restart|force-reload)
+	echo "Error: argument '$1' not supported" >&2
+	exit 3
+;;
+*)
+	echo "Usage: $SCRIPTNAME {start}" >&2
+	exit 3
+;;
+esac
+
+:


Follow ups