Your message dated Tue, 23 Jun 2009 17:02:06 +0000
with message-id <[email protected]>
and subject line Bug#534300: fixed in sysvinit 2.86.ds1-62
has caused the Debian Bug report #534300,
regarding Please add /usr/sbin/service to sysvinit-utils
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
534300: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534300
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysvinit-utils
Version: 2.86.ds1-61
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: ubuntu-patch origin-ubuntu karmic
Hi guys,
Please find attached a patch from the Ubuntu sysvinit-utils package that
adds a 'service' command and manpage.
This implies conflicts with the chkconfig and sysvconfig packages, which
also implement this command, but we should really move it more centrally and
make it a standard interface.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
[email protected] [email protected]
Index: debian/control
===================================================================
--- debian/control (revision 1332)
+++ debian/control (working copy)
@@ -26,15 +26,15 @@
Package: sysvinit-utils
Essential: yes
Architecture: any
-Conflicts: last
-Replaces: last, sysvinit (<= 2.86.ds1-22)
+Conflicts: last, sysvconfig, chkconfig
+Replaces: last, sysvinit (<= 2.86.ds1-22), sysvconfig, chkconfig
Depends: ${shlibs:Depends}
Suggests: sash
Description: System-V-like utilities
This package contains the important System-V-like utilities.
.
Specifically, this package includes:
- killall5, last, lastb, mesg, pidof, sulogin
+ killall5, last, lastb, mesg, pidof, service, sulogin
Package: sysv-rc
Architecture: all
Index: debian/rules
===================================================================
--- debian/rules (revision 1332)
+++ debian/rules (working copy)
@@ -110,6 +110,7 @@
rm -f $(tmp)/usr/share/man/man1/last.1
rm -f $(tmp)/usr/share/man/man1/lastb.1
rm -f $(tmp)/usr/share/man/man1/mesg.1
+ rm -f $(tmp)/usr/share/man/man8/service.8
rm -f $(tmp)/usr/share/man/man8/pidof.8
rm -f $(tmp)/usr/share/man/man1/mountpoint.1
rm -f $(tmp)/sbin/killall5
@@ -117,6 +118,7 @@
rm -f $(tmp)/usr/bin/last
rm -f $(tmp)/usr/bin/lastb
rm -f $(tmp)/usr/bin/mesg
+ rm -f $(tmp)/usr/sbin/service
rm -f $(tmp)/bin/pidof
rm -f $(tmp)/bin/mountpoint
rmdir $(tmp)/usr/share/man/man1
@@ -152,6 +154,7 @@
install -o root -g root -m 755 src/sulogin $(tmp)/sbin
install -o root -g root -m 755 src/last $(tmp)/usr/bin
install -o root -g root -m 755 src/mesg $(tmp)/usr/bin
+ install -o root -g root -m 755 debian/service/sbin/service $(tmp)/usr/sbin
strip -s -R .comment $(tmp)/sbin/killall5
strip -s -R .comment $(tmp)/sbin/sulogin
strip -s -R .comment $(tmp)/usr/bin/last
@@ -163,6 +166,7 @@
install -o root -g root -m 644 man/last.1 $(tmp)/usr/share/man/man1
install -o root -g root -m 644 man/lastb.1 $(tmp)/usr/share/man/man1
install -o root -g root -m 644 man/mesg.1 $(tmp)/usr/share/man/man1
+ install -o root -g root -m 644 debian/service/man8/service.8 $(tmp)/usr/share/man/man8
install -o root -g root -m 644 man/pidof.8 $(tmp)/usr/share/man/man8
gzip -9f $(tmp)/usr/share/man/man*/*.[0-9]
install -o root -g root -m 644 debian/copyright \
Index: debian/service/man8/service.8
===================================================================
--- debian/service/man8/service.8 (revision 0)
+++ debian/service/man8/service.8 (revision 0)
@@ -0,0 +1,76 @@
+.\" A man page for service(8). -*- nroff -*-
+.\"
+.\" Copyright (C) 2006 Red Hat, Inc. All rights reserved.
+.\"
+.\" This copyrighted material is made available to anyone wishing to use,
+.\" modify, copy, or redistribute it subject to the terms and conditions of the
+.\" GNU General Public License v.2.
+.\"
+.\" 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.
+.\"
+.\" You should have received a copy of the GNU General Public License along
+.\" with this program; if not, write to the Free Software Foundation, Inc.,
+.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+.\"
+.\" Author: Miloslav Trmac <[email protected]>
+.TH service 8 "Jan 2006"
+
+.SH NAME
+service \- run a System V init script
+
+.SH SYNOPSIS
+\fBservice\fR \fISCRIPT\fR \fICOMMAND\fR [\fIOPTIONS\fR]
+
+\fBservice \-\-status\-all\fR
+
+\fBservice\fR \fB\-\-help\fR | \fB\-h\fR | \fB\-\-version\fR
+
+.SH DESCRIPTION
+.B service
+runs a System V init script in as predictable environment as possible,
+removing most environment variables
+and with current working directory set to \fB/\fR.
+
+The
+.I SCRIPT
+parameter specifies a System V init script,
+located in \fB/etc/init.d/\fISCRIPT\fR.
+The supported values of
+.I COMMAND
+depend on the invoked script,
+.B service
+passes
+.I COMMAND
+and
+.I OPTIONS
+it to the init script unmodified.
+All scripts should support at least the
+.B start
+and
+.B stop
+commands.
+As a special case, if
+.I COMMAND
+is \fB\-\-full-restart\fR, the script is run twice, first with the
+.B stop
+command, then with the
+.B start
+command.
+
+.B service \-\-status\-all
+runs all init scripts, in alphabetical order, with the
+.B status
+command.
+
+.SH FILES
+.TP
+\fB/etc/init.d\fR
+The directory containing System V init scripts.
+
+.SH ENVIRONMENT
+.TP
+\fBLANG\fR, \fBTERM\fR
+The only environment variables passed to the init scripts.
Index: debian/service/sbin/service
===================================================================
--- debian/service/sbin/service (revision 0)
+++ debian/service/sbin/service (revision 0)
@@ -0,0 +1,120 @@
+#!/bin/sh
+
+###########################################################################
+# /usr/bin/service
+#
+# A convenient wrapper for the /etc/init.d init scripts.
+#
+# This script is a modified version of the /sbin/service utility found on
+# Red Hat/Fedora systems (licensed GPLv2+).
+#
+# Copyright (C) 2006 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2008 Canonical Ltd.
+# * August 2008 - Dustin Kirkland <[email protected]>
+#
+# 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# On Debian GNU/Linux systems, the complete text of the GNU General
+# Public License can be found in `/usr/share/common-licenses/GPL'.
+###########################################################################
+
+
+is_ignored_file() {
+ case "$1" in
+ skeleton | README | *.dpkg-dist | *.dpkg-old | rc | rcS | single | reboot | bootclean.sh)
+ return 0
+ ;;
+ esac
+ return 1
+}
+
+VERSION="`basename $0` ver. 0.91-ubuntu1"
+USAGE="Usage: `basename $0` < option > | --status-all | \
+[ service_name [ command | --full-restart ] ]"
+SERVICE=
+SERVICEDIR="/etc/init.d"
+OPTIONS=
+
+if [ $# -eq 0 ]; then
+ echo "${USAGE}" >&2
+ exit 1
+fi
+
+cd /
+while [ $# -gt 0 ]; do
+ case "${1}" in
+ --help | -h | --h* )
+ echo "${USAGE}" >&2
+ exit 0
+ ;;
+ --version | -V )
+ echo "${VERSION}" >&2
+ exit 0
+ ;;
+ *)
+ if [ -z "${SERVICE}" -a $# -eq 1 -a "${1}" = "--status-all" ]; then
+ cd ${SERVICEDIR}
+ for SERVICE in * ; do
+ case "${SERVICE}" in
+ functions | halt | killall | single| linuxconf| kudzu)
+ ;;
+ *)
+ if ! is_ignored_file "${SERVICE}" \
+ && [ -x "${SERVICEDIR}/${SERVICE}" ]; then
+ if ! grep -qs "\Wstatus)" "$SERVICE"; then
+ #printf " %s %-60s %s\n" "[?]" "$SERVICE:" "unknown" 1>&2
+ echo " [ ? ] $SERVICE" 1>&2
+ continue
+ else
+ out=$(env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" status 2>&1)
+ if [ "$?" = "0" -a -n "$out" ]; then
+ #printf " %s %-60s %s\n" "[+]" "$SERVICE:" "running"
+ echo " [ + ] $SERVICE"
+ continue
+ else
+ #printf " %s %-60s %s\n" "[-]" "$SERVICE:" "NOT running"
+ echo " [ - ] $SERVICE"
+ continue
+ fi
+ fi
+ #env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" status
+ fi
+ ;;
+ esac
+ done
+ exit 0
+ elif [ $# -eq 2 -a "${2}" = "--full-restart" ]; then
+ SERVICE="${1}"
+ if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
+ env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" stop
+ env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" start
+ exit $?
+ fi
+ elif [ -z "${SERVICE}" ]; then
+ SERVICE="${1}"
+ else
+ OPTIONS="${OPTIONS} ${1}"
+ fi
+ shift
+ ;;
+ esac
+done
+
+if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
+ env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" ${OPTIONS}
+else
+ echo $"${SERVICE}: unrecognized service" >&2
+ exit 1
+fi
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Source: sysvinit
Source-Version: 2.86.ds1-62
We believe that the bug you reported is fixed in the latest version of
sysvinit, which is due to be installed in the Debian FTP archive:
initscripts_2.86.ds1-62_i386.deb
to pool/main/s/sysvinit/initscripts_2.86.ds1-62_i386.deb
sysv-rc_2.86.ds1-62_all.deb
to pool/main/s/sysvinit/sysv-rc_2.86.ds1-62_all.deb
sysvinit-utils_2.86.ds1-62_i386.deb
to pool/main/s/sysvinit/sysvinit-utils_2.86.ds1-62_i386.deb
sysvinit_2.86.ds1-62.diff.gz
to pool/main/s/sysvinit/sysvinit_2.86.ds1-62.diff.gz
sysvinit_2.86.ds1-62.dsc
to pool/main/s/sysvinit/sysvinit_2.86.ds1-62.dsc
sysvinit_2.86.ds1-62_i386.deb
to pool/main/s/sysvinit/sysvinit_2.86.ds1-62_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Petter Reinholdtsen <[email protected]> (supplier of updated sysvinit package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 23 Jun 2009 18:18:53 +0200
Source: sysvinit
Binary: sysvinit sysvinit-utils sysv-rc initscripts
Architecture: source i386 all
Version: 2.86.ds1-62
Distribution: unstable
Urgency: low
Maintainer: Debian sysvinit maintainers
<[email protected]>
Changed-By: Petter Reinholdtsen <[email protected]>
Description:
initscripts - Scripts for initializing and shutting down the system
sysv-rc - System-V-like runlevel change mechanism
sysvinit - System-V-like init utilities
sysvinit-utils - System-V-like utilities
Closes: 67095 316468 339955 360165 422940 457896 461103 471101 483392 484883
501724 504877 510455 510912 512003 519520 526398 529805 534300
Changes:
sysvinit (2.86.ds1-62) unstable; urgency=low
.
[ Kel Modderman ]
* Add missing semi-colon in LSB header of init.d/urandom (Closes:
#501724).
* Force C locale for df command used in init.d/mountoverflowtmp.
(Closes: #510912)
* Update startpar source to upstream 0.52 (from 0.50) and apply debian
compatibility patch (sent upstream). Also workaround /dev/pts not
being mounted early in runlevel S by having startpar use an own
version of getpt(2) system call. (Closes: #457896, #484883)
* Enable CONCURRENCY=makefile mode in debian/sysv-rc/etc/init.d/rc.
This mode uses startpar and the /etc/init.d/.depend.* makefile-like
information created by insserv to calculate boot script execution
order. The splash API is not supported in this mode of boot. This
mode of boot is considered very experimental at this time.
* Allow startpar using concurrency modes to operate in runlevel S, now
that startpar can manage to work properly in absence of /dev/pts.
* Use uscan dversionmangle option to remove .ds\d+ string from modifed
orig.tar.gz. This fixes the debian-watch-file-should-mangle-version
lintian warning. Patch taken from diff on LP: #312764.
* Add comment to debian/sysv-rc/etc/init.d/rc about debug=echo, it
should never be left uncommented for a real boot process and should
only be used for interactive debugging. (Closes: #510455)
* Do not mount usbfs any more, it was deprecated long ago.
Applications should all use /dev/bus/usb, which can be managed more
flexibly (assign permissions with udev, and the like). Thanks Martin
Pitt. (Closes: #483392, #422940, #360165, #471101)
* Add Homepage field to debian/control.
* Add interface for disabling system init script start links with
update-rc.d, and enabling them again. (Closes: #67095)
* When update-rc.d in "start|stop"-mode is invoked without the final
dot, script warnings are displayed just before the "usage" message
is shown. Check that last argument to start|stop command is a period
earlier. Thanks to Patrick <[email protected]>. (Closes: #512003)
* Use -delete option of find(1) instead of piping through xargs in
debian/initscripts/lib/init/bootclean.sh. (Closes: #316468, #461103)
* Make init.d/rc simpler by dropping support for sourcing .sh files
after the policy finally changed in 3.8.1. Update to Standards
version 3.8.1. (Closes: #339955, #519520)
* Allow initscripts postinst maintainer script to not fail when
attempting to mkdir /dev/pts and /dev/shm when running in a
fakechroot environment. This is done by checking for FAKECHROOT env
variable before bailing out. Patch thanks to Daniel Kahn Gillmor.
(Closes: #504877)
* Update debian/NOTES to reflect current affairs.
.
[ Petter Reinholdtsen ]
* Move the startpar binary to a more proper location, from sysvinit
to sysvinit-utils.
* Comment out the code disabling fsck when running on battery. It
need changes in fsck to work properly (Closes: #526398). This
Reopens #326647.
* Add a /usr/sbin/service command (Closes: #534300). Modified the
manual page based on ideas from the sysvconfig package. Thanks to
Steve Langasek and Ubuntu. Add conflict with sysvconfig and
chkconfig providing the same program.
* Improve init.d/umountfs umount ordering code to avoid being
confused while still solving #391673 (Closes: #529805). Patch
from Tim Phipps.
* Make sysv-rc depend on a version of sysvinit-utils with a properly
working startpar, in case concurrent booting is enabled.
* Drop shell style concurrent booting, and make CONCURRENCY=shell
behave like CONCURRENTY=startpar, as startpar concurrency now work
properly.
Checksums-Sha1:
77ff3ecfa1130e320dacfaec70b044d381c85fca 1483 sysvinit_2.86.ds1-62.dsc
0fe9f119888b22ab789e2b9babeabcb95efb0b5d 155616 sysvinit_2.86.ds1-62.diff.gz
81cb9e47352efc1de8e72c31d3b4f7c6c4c6d69f 103082 sysvinit_2.86.ds1-62_i386.deb
34da4a531585d44301ece3088c5981d687a002c5 86618
sysvinit-utils_2.86.ds1-62_i386.deb
f2f446c6e5c9fdbb1c93822fa33e209967d09545 69010 initscripts_2.86.ds1-62_i386.deb
a2ebfd00011db4f3d0609634b2409acba7e14826 65638 sysv-rc_2.86.ds1-62_all.deb
Checksums-Sha256:
89db98da56f8c2417aee098f44cc301c2821409bbe1682515a86fa311363c843 1483
sysvinit_2.86.ds1-62.dsc
f655ed6fdfd2591dadc399aaae9fe6dc1782d165feb908ff240b7ad2d1f0e4f2 155616
sysvinit_2.86.ds1-62.diff.gz
718dfa0d930d38130358cef22d5b86ae2e078eb7ea9615b6a75a3ed8307128f8 103082
sysvinit_2.86.ds1-62_i386.deb
ab26b862341d93190797c4b79bcd4acf25185eccb12f6127b98954cbf667ba60 86618
sysvinit-utils_2.86.ds1-62_i386.deb
bf8f5330b35ba5ea5a42fbd43d8d43dcf893534983114a83d5daff7db2d6031f 69010
initscripts_2.86.ds1-62_i386.deb
bf3e86f69effe488a950c8c04955505e6dedb73d577b6c038edab4c4376092d3 65638
sysv-rc_2.86.ds1-62_all.deb
Files:
8aff0cbff66ff250babf4be897c88dda 1483 admin required sysvinit_2.86.ds1-62.dsc
6dd9d90daa7384f24198e2a20534d9cd 155616 admin required
sysvinit_2.86.ds1-62.diff.gz
88235b6992eccdbc9689efd79c021149 103082 admin required
sysvinit_2.86.ds1-62_i386.deb
40006b5c47ecd8e7af6f2fb0356eecbe 86618 admin required
sysvinit-utils_2.86.ds1-62_i386.deb
a8cd6f0d2982e6cfb7489d56a449f079 69010 admin required
initscripts_2.86.ds1-62_i386.deb
2b8ebaa8b9a72a66abf0e7c5ffb90fd9 65638 admin required
sysv-rc_2.86.ds1-62_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFKQQiC20zMSyow1ykRAjJ7AKDts2KBER9fjpOcCIrHnwyy9aR/xgCgy0r5
ZBq+xDveg/S8a8ikptgAiC0=
=O+4B
-----END PGP SIGNATURE-----
--- End Message ---