--- upstart-0.2.5.orig/debian/control +++ upstart-0.2.5/debian/control @@ -0,0 +1,48 @@ +Source: upstart +Section: base +Priority: required +Maintainer: Scott James Remnant +Standards-Version: 3.7.2.1 +Build-Depends: debhelper (>= 5.0) + +Package: upstart +Architecture: any +Pre-Depends: ${shlibs:Depends} +Recommends: upstart-compat-sysv, upstart-logd, startup-tasks, system-services +Conflicts: sysvinit +Replaces: sysvinit +Description: event-based init daemon + upstart is a replacement for the /sbin/init daemon which handles + starting of tasks and services during boot, stopping them during + shutdown and supervising them while the system is running. + +Package: upstart-compat-sysv +Architecture: any +Depends: ${shlibs:Depends}, upstart (>= 0.2.0), sysvutils, sysv-rc, initscripts +Replaces: upstart (<< 0.2.0-1), sysvinit +Description: compatibility for System-V-like init + This package contains compatibility tasks and utilities that emulate + the behaviour of the original sysvinit package, including runlevels, + and ensures that the initscripts in /etc/rc*.d are still run. + +Package: upstart-logd +Architecture: any +Depends: ${shlibs:Depends}, upstart (>= 0.2.0) +Description: boot logging daemon + This package contains the logd daemon used by /sbin/init to log output + of jobs started with "console logged" in their definitions. + +Package: startup-tasks +Architecture: any +Depends: upstart (>= 0.2.0) +Description: definitions of essential tasks to run on startup + This package contains the definitions of tasks essential for normal + startup of a Linux system. + +Package: system-services +Architecture: any +Depends: upstart (>= 0.2.0), upstart-compat-sysv, util-linux +Replaces: upstart (<< 0.2.1-6) +Description: definitions of essential system services + This package contains the definitions of services essential for the + normal operation of a Linux system. --- upstart-0.2.5.orig/debian/changelog +++ upstart-0.2.5/debian/changelog @@ -0,0 +1,122 @@ +upstart (0.2.5-1) edgy; urgency=low + + * New upstream release: + - no longer spins when no stalled event handler. Ubuntu: #59170. + - shutdown works when under sysvinit. Ubuntu: #58523; + - shutdown -k implemented. Ubuntu: #58723. + - telinit sends shutdown event for 0, 1 and 6. Ubuntu: #58913. + - basic manual pages included. Ubuntu: #58724. + + * upstart-compat-sysv Replaces: sysvinit. Ubuntu: #59427. + * upstart Recommends: upstart-compat-sysv, startup-tasks & system-services. + + * New upstart-logd package includes the logd daemon that can will log + output of jobs with "console logged" (the default) in their description + to /var/log/boot. + + * Add /etc/event.d/rc0 that is run on the "halt" event (neither -H or -P + given), and modify rc0-halt to run on "system-halt" (-H given) and + rc0-poweroff to run on "power-off" (-P given). Ubuntu: #59134. + * Fix the control-alt-delete job to run on the "ctrlaltdel" event so + that it's triggered properly. Ubuntu: #59398. + * Fix single-user mode. + + -- Scott James Remnant Sat, 9 Sep 2006 05:10:12 +0100 + +upstart (0.2.1-7) edgy; urgency=low + + * Remove the Essential tags again, they didn't solve the problem we + hoped they would (dpkg/apt still won't remove sysvinit without + serious persuasion) and I don't think these packages should be. + + -- Scott James Remnant Thu, 7 Sep 2006 02:42:33 +0100 + +upstart (0.2.1-6) edgy; urgency=low + + * Make packages Essential, and change Depends to Pre-Depends so that the + packages work when unconfigured (nothing interesting is performed in + postinst). Ubuntu: #59005. + * Sync priority in debian/control with that in the archive (required) + * Drop warning of dire consequences if you install upstart, seeing as it's + installed by default. + + * Add new startup-tasks and system-services packages which will contain + the /etc/event.d files themselves (other than the main ones). + * Move tty definitions into system-services. + * Modify tty definitions to start when the rcS task has finished. This + puts them in the "right" place when compared to gdm. Ubuntu: #58630. + + * Correct rcS compatibility script to ignore any information in utmp so + that all scripts are always run. Ubuntu: #59203. + * Make rcS the console owner while it runs, temporary fix for + Ubuntu: #58609, #58794, #58796 + * Include default control-alt-delete handler that reboots the machine. + + -- Scott James Remnant Wed, 6 Sep 2006 21:52:48 +0100 + +upstart (0.2.1-5) edgy; urgency=low + + * upstart-compat-sysv Depends: initscripts (closes: Malone #58979). + + -- Colin Watson Tue, 5 Sep 2006 12:22:50 +0100 + +upstart (0.2.1-4) edgy; urgency=low + + * Add missing #! line to top of postrm + + -- Scott James Remnant Mon, 4 Sep 2006 08:11:16 +0100 + +upstart (0.2.1-3) edgy; urgency=low + + * Remove the rc0 configuration file shipped in 0.1.0 that causes all + reboots to become shutdowns. Ubuntu: #58557. + + -- Scott James Remnant Sun, 3 Sep 2006 23:24:41 +0100 + +upstart (0.2.1-2) edgy; urgency=low + + * Don't send the SIGTERM signal unless we're upgrading from a version + of upstart that supports re-exec; older versions would cause a kernel + PANIC and change from sysvinit does nothing. + + -- Scott James Remnant Sat, 2 Sep 2006 17:18:38 +0100 + +upstart (0.2.1-1) edgy; urgency=low + + * New upstream release: + - compilation fixes. + + -- Scott James Remnant Fri, 1 Sep 2006 19:51:41 +0100 + +upstart (0.2.0-1) edgy; urgency=low + + * New upstream release: + - upstart includes shutdown, reboot, halt, poweroff, start, stop, status, + runlevel and telinit utilities. + - "initctl list" will list active jobs. + - Events vastly simplified to just simple strings. + + * Compatibility tasks for old rc scripts, along with runlevel and telinit + utilities now shipped in upstart-compat-sysv package. + + -- Scott James Remnant Fri, 1 Sep 2006 02:38:44 +0100 + +upstart (0.1.1-1) edgy; urgency=low + + * New upstream release: + - set PATH and TERM in processes + + -- Scott James Remnant Fri, 25 Aug 2006 16:17:52 +0200 + +upstart (0.1.0-2) edgy; urgency=low + + * Oops, rename /sbin/init to /sbin/upstart as documented. Lost this + while battling bzr. + + -- Scott James Remnant Thu, 24 Aug 2006 16:30:54 +0200 + +upstart (0.1.0-1) edgy; urgency=low + + * Initial release. + + -- Scott James Remnant Thu, 24 Aug 2006 14:27:47 +0200 --- upstart-0.2.5.orig/debian/rules +++ upstart-0.2.5/debian/rules @@ -0,0 +1,105 @@ +#!/usr/bin/make -f +# debian/rules for the upstart package. +# Author: Scott James Remnant + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export DH_OPTIONS + +CFLAGS = -Wall -g + +# Disable optimisations if noopt found in $DEB_BUILD_OPTIONS +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -Os +endif + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build=$(DEB_HOST_GNU_TYPE) +else + confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) +endif + + +# Run the package configure script +config.status: configure + ./configure $(confflags) CFLAGS="$(CFLAGS)" \ + --prefix=/usr \ + --exec-prefix=/ \ + --sysconfdir=/etc \ + --localstatedir=/var/lib \ + --mandir=\$${datadir}/man \ + --infodir=\$${datadir}/info + + +# Build the package +build: build-stamp +build-stamp: config.status + dh_testdir + + $(MAKE) + touch $@ + +# Install the package underneath debian/tmp +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) DESTDIR="$(CURDIR)/debian/tmp" install + + # Temporary hack + install -m 755 -o root -g root debian/sulogin debian/tmp/sbin/sulogin + + # Copy across the default jobs + @set -x; for pkg in upstart upstart-compat-sysv system-services; do \ + for job in debian/event.d/$$pkg/*; do \ + install -m 644 -o root -g root $$job \ + debian/$$pkg/etc/event.d || exit 1; \ + done; \ + done + + +binary: binary-indep binary-arch + +# Build architecture-independent files here. +binary-indep: +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: DH_OPTIONS=-a +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_install --sourcedir=debian/tmp + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + + +# Clean up the mess we made +clean: + dh_testdir + rm -f build-stamp + + -$(MAKE) clean distclean + dh_clean + + +.PHONY: build install binary-indep binary-arch binary clean --- upstart-0.2.5.orig/debian/compat +++ upstart-0.2.5/debian/compat @@ -0,0 +1 @@ +5 --- upstart-0.2.5.orig/debian/startup-tasks.dirs +++ upstart-0.2.5/debian/startup-tasks.dirs @@ -0,0 +1 @@ +etc/event.d --- upstart-0.2.5.orig/debian/copyright +++ upstart-0.2.5/debian/copyright @@ -0,0 +1,19 @@ +This is the Ubuntu package of upstart, the event-based init daemon. + +Copyright © 2006 Canonical Ltd. +Copyright © 2006 Scott James Remnant + +Licence: + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +On Ubuntu systems, the complete text of the GNU General Public License +can be found in ‘/usr/share/common-licenses/GPL’. --- upstart-0.2.5.orig/debian/event.d/upstart/sulogin +++ upstart-0.2.5/debian/event.d/upstart/sulogin @@ -0,0 +1,18 @@ +# sulogin - rescue mode +# +# This task ensures that should the system fail to have any active jobs +# that the system administrator can rescue it; by giving them a shell. + +on stalled + +exec /sbin/sulogin +console owner + +start script + echo + echo "The system has reached a state where there are no jobs running." + echo "A shell will be spawned so that you may start such jobs that are" + echo "necessary." + echo + echo "Type 'exit' when finished." +end script --- upstart-0.2.5.orig/debian/event.d/upstart/control-alt-delete +++ upstart-0.2.5/debian/event.d/upstart/control-alt-delete @@ -0,0 +1,8 @@ +# control-alt-delete - emergency keypress handling +# +# This task is run whenever the Control-Alt-Delete key combination is +# pressed. Usually used to shut down the machine. + +on ctrlaltdel + +exec /sbin/shutdown -r now "Control-Alt-Delete pressed" --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rc0 +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rc0 @@ -0,0 +1,25 @@ +# rc0 - runlevel 0 compatibility +# +# This task runs the old sysv-rc runlevel 0 ("halt/poweroff") scripts with +# the decision as to whether to halt or power off the system left up to the +# script (and thus /etc/default/poweroff). + +start on halt +start on runlevel-0 + +stop on shutdown +stop on runlevel-2 +stop on runlevel-3 +stop on runlevel-4 +stop on runlevel-5 + +script + set $(runlevel --set 0 || true) + if [ "$1" != "unknown" ]; then + PREVLEVEL=$1 + RUNLEVEL=$2 + export PREVLEVEL RUNLEVEL + fi + + exec /etc/init.d/rc 0 +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rc0-halt +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rc0-halt @@ -0,0 +1,24 @@ +# rc0-halt - runlevel 0 compatibility +# +# This task runs the old sysv-rc runlevel 0 ("halt/poweroff") scripts with +# the environment variables set to halt the system. + +start on system-halt + +stop on shutdown +stop on runlevel-2 +stop on runlevel-3 +stop on runlevel-4 +stop on runlevel-5 + +env INIT_HALT=HALT +script + set $(runlevel --set 0 || true) + if [ "$1" != "unknown" ]; then + PREVLEVEL=$1 + RUNLEVEL=$2 + export PREVLEVEL RUNLEVEL + fi + + exec /etc/init.d/rc 0 +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rc-default +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rc-default @@ -0,0 +1,24 @@ +# rc - runlevel compatibility +# +# This task guesses what the "default runlevel" should be and starts the +# appropriate script. + +start on rcS/stop +start on rcS-sulogin/stop + +script + runlevel --reboot || true + + if grep -q -w -- "-s\|single\|S" /proc/cmdline; then + telinit S + elif [ -r /etc/inittab ]; then + RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)" + if [ -n "$RL" ]; then + telinit $RL + else + telinit 2 + fi + else + telinit 2 + fi +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rcS +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rcS @@ -0,0 +1,19 @@ +# rcS - runlevel compatibility +# +# This task runs the old sysv-rc startup scripts. + +start on startup + +stop on shutdown +stop on runlevel-2 +stop on runlevel-3 +stop on runlevel-4 +stop on runlevel-5 + +# Note: there can be no previous runlevel here, if we have one it's bad +# information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc +# without information so that it defaults to previous=N runlevel=S. +script + runlevel --set S >/dev/null || true + exec /etc/init.d/rcS +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rc1 +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rc1 @@ -0,0 +1,23 @@ +# rc1 - runlevel 1 compatibility +# +# This task runs the old sysv-rc runlevel 1 ("single-user") scripts. + +start on maintenance +start on runlevel-1 + +stop on shutdown +stop on runlevel-2 +stop on runlevel-3 +stop on runlevel-4 +stop on runlevel-5 + +script + set $(runlevel --set 1 || true) + if [ "$1" != "unknown" ]; then + PREVLEVEL=$1 + RUNLEVEL=$2 + export PREVLEVEL RUNLEVEL + fi + + exec /etc/init.d/rc 1 +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rc2 +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rc2 @@ -0,0 +1,22 @@ +# rc2 - runlevel 2 compatibility +# +# This task runs the old sysv-rc runlevel 2 ("multi-user") scripts. It +# is usually started by the telinit compatibility wrapper. + +start on runlevel-2 + +stop on shutdown +stop on runlevel-3 +stop on runlevel-4 +stop on runlevel-5 + +script + set $(runlevel --set 2 || true) + if [ "$1" != "unknown" ]; then + PREVLEVEL=$1 + RUNLEVEL=$2 + export PREVLEVEL RUNLEVEL + fi + + exec /etc/init.d/rc 2 +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rc0-poweroff +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rc0-poweroff @@ -0,0 +1,24 @@ +# rc0-poweroff - runlevel 0 compatibility +# +# This task runs the old sysv-rc runlevel 0 ("halt/poweroff") scripts with +# the environment variables set to power off the system. + +start on power-off + +stop on shutdown +stop on runlevel-2 +stop on runlevel-3 +stop on runlevel-4 +stop on runlevel-5 + +env INIT_HALT=POWEROFF +script + set $(runlevel --set 0 || true) + if [ "$1" != "unknown" ]; then + PREVLEVEL=$1 + RUNLEVEL=$2 + export PREVLEVEL RUNLEVEL + fi + + exec /etc/init.d/rc 0 +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rc3 +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rc3 @@ -0,0 +1,22 @@ +# rc3 - runlevel 3 compatibility +# +# This task runs the old sysv-rc runlevel 3 (user defined) scripts. It +# is usually started by the telinit compatibility wrapper. + +start on runlevel-3 + +stop on shutdown +stop on runlevel-2 +stop on runlevel-4 +stop on runlevel-5 + +script + set $(runlevel --set 3 || true) + if [ "$1" != "unknown" ]; then + PREVLEVEL=$1 + RUNLEVEL=$2 + export PREVLEVEL RUNLEVEL + fi + + exec /etc/init.d/rc 3 +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rc4 +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rc4 @@ -0,0 +1,22 @@ +# rc4 - runlevel 4 compatibility +# +# This task runs the old sysv-rc runlevel 4 (user defined) scripts. It +# is usually started by the telinit compatibility wrapper. + +start on runlevel-4 + +stop on shutdown +stop on runlevel-2 +stop on runlevel-3 +stop on runlevel-5 + +script + set $(runlevel --set 4 || true) + if [ "$1" != "unknown" ]; then + PREVLEVEL=$1 + RUNLEVEL=$2 + export PREVLEVEL RUNLEVEL + fi + + exec /etc/init.d/rc 4 +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rc5 +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rc5 @@ -0,0 +1,22 @@ +# rc5 - runlevel 5 compatibility +# +# This task runs the old sysv-rc runlevel 5 (user defined) scripts. It +# is usually started by the telinit compatibility wrapper. + +start on runlevel-5 + +stop on shutdown +stop on runlevel-2 +stop on runlevel-3 +stop on runlevel-4 + +script + set $(runlevel --set 5 || true) + if [ "$1" != "unknown" ]; then + PREVLEVEL=$1 + RUNLEVEL=$2 + export PREVLEVEL RUNLEVEL + fi + + exec /etc/init.d/rc 5 +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rc6 +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rc6 @@ -0,0 +1,23 @@ +# rc6 - runlevel 6 compatibility +# +# This task runs the old sysv-rc runlevel 6 ("reboot") scripts. + +start on reboot +start on runlevel-6 + +stop on shutdown +stop on runlevel-2 +stop on runlevel-3 +stop on runlevel-4 +stop on runlevel-5 + +script + set $(runlevel --set 6 || true) + if [ "$1" != "unknown" ]; then + PREVLEVEL=$1 + RUNLEVEL=$2 + export PREVLEVEL RUNLEVEL + fi + + exec /etc/init.d/rc 6 +end script --- upstart-0.2.5.orig/debian/event.d/upstart-compat-sysv/rcS-sulogin +++ upstart-0.2.5/debian/event.d/upstart-compat-sysv/rcS-sulogin @@ -0,0 +1,14 @@ +# rcS-sulogin - "single-user" runlevel compatibility +# +# This task runs the sulogin binary during "single-user" mode. + +start on runlevel-S + +stop on shutdown +stop on runlevel-2 +stop on runlevel-3 +stop on runlevel-4 +stop on runlevel-5 + +exec /sbin/sulogin +console owner --- upstart-0.2.5.orig/debian/event.d/system-services/tty1 +++ upstart-0.2.5/debian/event.d/system-services/tty1 @@ -0,0 +1,13 @@ +# tty1 - getty +# +# This service maintains a getty on tty1 from the point the system is +# started until it is shut down again. + +start on runlevel-2 +start on runlevel-3 +start on runlevel-4 +start on runlevel-5 + +stop on shutdown + +respawn /sbin/getty 38400 tty1 --- upstart-0.2.5.orig/debian/event.d/system-services/tty2 +++ upstart-0.2.5/debian/event.d/system-services/tty2 @@ -0,0 +1,13 @@ +# tty2 - getty +# +# This service maintains a getty on tty2 from the point the system is +# started until it is shut down again. + +start on runlevel-2 +start on runlevel-3 +start on runlevel-4 +start on runlevel-5 + +stop on shutdown + +respawn /sbin/getty 38400 tty2 --- upstart-0.2.5.orig/debian/event.d/system-services/tty3 +++ upstart-0.2.5/debian/event.d/system-services/tty3 @@ -0,0 +1,13 @@ +# tty3 - getty +# +# This service maintains a getty on tty3 from the point the system is +# started until it is shut down again. + +start on runlevel-2 +start on runlevel-3 +start on runlevel-4 +start on runlevel-5 + +stop on shutdown + +respawn /sbin/getty 38400 tty3 --- upstart-0.2.5.orig/debian/event.d/system-services/tty4 +++ upstart-0.2.5/debian/event.d/system-services/tty4 @@ -0,0 +1,13 @@ +# tty4 - getty +# +# This service maintains a getty on tty4 from the point the system is +# started until it is shut down again. + +start on runlevel-2 +start on runlevel-3 +start on runlevel-4 +start on runlevel-5 + +stop on shutdown + +respawn /sbin/getty 38400 tty4 --- upstart-0.2.5.orig/debian/event.d/system-services/tty5 +++ upstart-0.2.5/debian/event.d/system-services/tty5 @@ -0,0 +1,13 @@ +# tty5 - getty +# +# This service maintains a getty on tty5 from the point the system is +# started until it is shut down again. + +start on runlevel-2 +start on runlevel-3 +start on runlevel-4 +start on runlevel-5 + +stop on shutdown + +respawn /sbin/getty 38400 tty5 --- upstart-0.2.5.orig/debian/event.d/system-services/tty6 +++ upstart-0.2.5/debian/event.d/system-services/tty6 @@ -0,0 +1,13 @@ +# tty6 - getty +# +# This service maintains a getty on tty6 from the point the system is +# started until it is shut down again. + +start on runlevel-2 +start on runlevel-3 +start on runlevel-4 +start on runlevel-5 + +stop on shutdown + +respawn /sbin/getty 38400 tty6 --- upstart-0.2.5.orig/debian/system-services.dirs +++ upstart-0.2.5/debian/system-services.dirs @@ -0,0 +1 @@ +etc/event.d --- upstart-0.2.5.orig/debian/upstart-logd.install +++ upstart-0.2.5/debian/upstart-logd.install @@ -0,0 +1,3 @@ +sbin/logd +etc/event.d/logd +usr/share/man/man8/logd.8 --- upstart-0.2.5.orig/debian/upstart.dirs +++ upstart-0.2.5/debian/upstart.dirs @@ -0,0 +1 @@ +etc/event.d --- upstart-0.2.5.orig/debian/upstart.install +++ upstart-0.2.5/debian/upstart.install @@ -0,0 +1,20 @@ +sbin/init +sbin/initctl +sbin/start +sbin/stop +sbin/status +sbin/reboot +sbin/halt +sbin/poweroff +sbin/shutdown +sbin/sulogin +usr/share/man/man8/init.8 +usr/share/man/man8/initctl.8 +usr/share/man/man8/start.8 +usr/share/man/man8/stop.8 +usr/share/man/man8/status.8 +usr/share/man/man8/reboot.8 +usr/share/man/man8/halt.8 +usr/share/man/man8/poweroff.8 +usr/share/man/man8/shutdown.8 +usr/share/man/man8/sulogin.8 --- upstart-0.2.5.orig/debian/sulogin +++ upstart-0.2.5/debian/sulogin @@ -0,0 +1,11 @@ +#!/bin/sh +# UNGODLY HACK +# but maybe it's the right way of doing this? :) + +CONSOLE=/dev/console + +[ "$1" = "-p" ] && shift +[ "$1" = "-t" ] && shift 2 +[ -n "$1" ] && CONSOLE="$1" + +exec /bin/sh <$CONSOLE >$CONSOLE 2>&1 --- upstart-0.2.5.orig/debian/upstart-compat-sysv.dirs +++ upstart-0.2.5/debian/upstart-compat-sysv.dirs @@ -0,0 +1 @@ +etc/event.d --- upstart-0.2.5.orig/debian/upstart-compat-sysv.install +++ upstart-0.2.5/debian/upstart-compat-sysv.install @@ -0,0 +1,4 @@ +sbin/runlevel +sbin/telinit +usr/share/man/man8/runlevel.8 +usr/share/man/man8/telinit.8 --- upstart-0.2.5.orig/debian/upstart.postinst +++ upstart-0.2.5/debian/upstart.postinst @@ -0,0 +1,44 @@ +#!/bin/sh -e +# This script can be called in the following ways: +# +# After the package was installed: +# configure +# +# +# If prerm fails during upgrade or fails on failed upgrade: +# abort-upgrade +# +# If prerm fails during deconfiguration of a package: +# abort-deconfigure in-favour +# removing +# +# If prerm fails during replacement due to conflict: +# abort-remove in-favour + + +# Tell init to re-exec itself +reexec_init() +{ + kill -TERM 1 +} + + +case "$1" in + configure) + # On upgrade from a capable upstart version, tell it to re-exec + if dpkg --compare-versions "$2" ge "0.2.0-1"; then + reexec_init + fi + ;; + + abort-upgrade|abort-deconfigure|abort-remove) + ;; + + *) + echo "$0 called with unknown argument \`$1'" 1>&2 + exit 1 + ;; +esac + +#DEBHELPER# +exit 0