Your message dated Sat, 25 Oct 2014 22:24:18 +0000
with message-id <[email protected]>
and subject line Bug#745505: fixed in sysvinit 2.88dsf-56
has caused the Debian Bug report #745505,
regarding sysv-rc: Operate against system-upstart only
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.)
--
745505: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745505
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysv-rc
Version: 2.88dsf-53
Severity: normal
Tags: patch
Dear Maintainer,
When using initctl utilities, they default to executing against system
upstart (typically pid 1), however if UPSTART_SESSION environment
variable is set, initctl defaults to operating against user-session
upstart (not very common on Debian desktops, but very common on ubuntu
desktops). Under such conditions, invoke-rc.d and service command should
operate against system upstart. With recent initctl one can use
'--system' command line option, but to stay compatible with initctl in
stable, i'm instead opting to unseting UPSTART_SESSION variable to
guarantee default execution against system upstart.
Regards,
Dimitri.
>From 8873e8eb1c569079d0e68de729cb1c2fd959aa91 Mon Sep 17 00:00:00 2001
From: Dimitri John Ledkov <[email protected]>
Date: Sun, 20 Apr 2014 19:02:39 +0100
Subject: [PATCH 2/2] service & invoke-rc.d: use system upstart only.
service & invoke-rc.d: unset UPSTART_SESSION environment variable to
make sure all upstart initctl commands are executed against system
init and not the session one.
---
debian/changelog | 3 +++
debian/service/service | 2 ++
debian/src/sysv-rc/sbin/invoke-rc.d | 2 ++
3 files changed, 7 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 01540bf..485cbd3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,9 @@ sysvinit (2.88dsf-55) UNRELEASED; urgency=medium
might still be an older upstart which may not yet support syntax of
the newly unpacked jobs, thus sysv-init script should be continued to
be used instead.
+ * service & invoke-rc.d: unset UPSTART_SESSION environment variable to
+ make sure all upstart initctl commands are executed against system
+ init and not the session one.
-- Gabriele Giacone <[email protected]> Mon, 07 Apr 2014 12:59:55 +0200
diff --git a/debian/service/service b/debian/service/service
index feef474..387420a 100755
--- a/debian/service/service
+++ b/debian/service/service
@@ -129,6 +129,8 @@ while [ $# -gt 0 ]; do
esac
done
+# Operate against system upstart, not session
+unset UPSTART_SESSION
if [ -r "/etc/init/${SERVICE}.conf" ] && which initctl >/dev/null \
&& initctl version 2>/dev/null | grep -q upstart \
&& initctl status ${SERVICE} 2>/dev/null 1>/dev/null
diff --git a/debian/src/sysv-rc/sbin/invoke-rc.d b/debian/src/sysv-rc/sbin/invoke-rc.d
index 88b178e..cdfc8d8 100644
--- a/debian/src/sysv-rc/sbin/invoke-rc.d
+++ b/debian/src/sysv-rc/sbin/invoke-rc.d
@@ -267,6 +267,8 @@ case ${ACTION} in
;;
esac
+# Operate against system upstart, not session
+unset UPSTART_SESSION
# If we're running on upstart and there's an upstart job of this name, do
# the rest with upstart instead of calling the init script.
if which initctl >/dev/null && initctl version 2>/dev/null | grep -q upstart \
--
1.9.1
--- End Message ---
--- Begin Message ---
Source: sysvinit
Source-Version: 2.88dsf-56
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.
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: Sat, 25 Oct 2014 23:33:38 +0200
Source: sysvinit
Binary: sysvinit sysvinit-core sysvinit-utils sysv-rc initscripts bootlogd
Architecture: source amd64 all
Version: 2.88dsf-56
Distribution: experimental
Urgency: medium
Maintainer: Debian sysvinit maintainers
<[email protected]>
Changed-By: Petter Reinholdtsen <[email protected]>
Description:
bootlogd - daemon to log boot messages
initscripts - scripts for initializing and shutting down the system
sysv-rc - System-V-like runlevel change mechanism
sysvinit - System-V-like init utilities - transitional package
sysvinit-core - System-V-like init utilities
sysvinit-utils - System-V-like utilities
Closes: 745503 745505 746587 751589
Changes:
sysvinit (2.88dsf-56) experimental; urgency=medium
.
[ Dimitri John Ledkov ]
* service & invoke-rc.d: in upstart interfacing code, check that the job
is actually known to upstart. This is because during upgrades, pid 1
might still be an older upstart which may not yet support syntax of
the newly unpacked jobs, thus sysv-init script should be continued to
be used instead. (Closes: #745503)
* service & invoke-rc.d: unset UPSTART_SESSION environment variable to
make sure all upstart initctl commands are executed against system
init and not the session one. (Closes: #745505)
* service: in upstart interfacing code, map "force-reload" to restart as
per Debian policy 9.3.2, since there is no way to know for-sure if a
reload is supported.
.
[ Petter Reinholdtsen ]
* Adjust the sysvinit/hurd-fix-inittab debconf template to no longer
claim sysvinit have never been used on hurd. It is not true any
more.
.
[ Steve Langasek ]
* Add necessary Conflicts/Replaces against systemd-sysv and upstart to
sysvinit-core. Closes: #751589.
* Confirm SRU fixing circular dependency of mountnfs ifupdown hook when
running with systemd. Closes: #746587.
.
[ Petter Reinholdtsen ]
* Update Vcs links in control file to the correct paths.
* Correct code in update-rc.d looking for insserv to look in
/usr/lib/insserv/insserv every time insserv is used, not only
only one of the relevant code blocks.
Checksums-Sha1:
d3dddb6393b74255ea98c55a38b35668401df8ed 1786 sysvinit_2.88dsf-56.dsc
9c7aec2b6e30fed7f06535daea9f54f426a03c0d 188031
sysvinit_2.88dsf-56.debian.tar.gz
518a9e36a325ff594043158475211816dadf29b2 102192 sysvinit_2.88dsf-56_amd64.deb
9bcc5d7b49d78268c99f6580eec0cf973cb02984 140324
sysvinit-core_2.88dsf-56_amd64.deb
b60960c54daf2881fa9c120aecbe1ca9903d737c 92324
sysvinit-utils_2.88dsf-56_amd64.deb
42c2f5863abc4620315f87a656dfcf9c53004841 84680 sysv-rc_2.88dsf-56_all.deb
d503118bef5dc22b2ddc4e0063faf5efbcc6f462 92170 initscripts_2.88dsf-56_amd64.deb
d48cce618ce8567e824f8ae58e2d16cfc7e07612 59648 bootlogd_2.88dsf-56_amd64.deb
Checksums-Sha256:
e3763f4d596c87f7b14d4280009af4caea743edadfe46726b1abfec57f080312 1786
sysvinit_2.88dsf-56.dsc
b5e6cdd00b3d703e0892519215ea49ac5eb3b564516d286673ca2c673174454f 188031
sysvinit_2.88dsf-56.debian.tar.gz
8bc93be34d345e851d57976b7bb02704ab8b24d0063694c4a5db4c665fefc8d5 102192
sysvinit_2.88dsf-56_amd64.deb
47531e7220c10b76d262ba3920e1af5d6892a3902cfcbde0935e298cae6b44f0 140324
sysvinit-core_2.88dsf-56_amd64.deb
044e2c1da028765b2ff11b2c0fd9b5b7e9e42606f6c365bb66754fd26728be07 92324
sysvinit-utils_2.88dsf-56_amd64.deb
98b5322210ab117d6f31b068a31a4b786d9f930bdbcc69e629eb2bb93d5f7156 84680
sysv-rc_2.88dsf-56_all.deb
799762c0f0fc72fc29ddb22356549f8ac95994f124d983682b436b3f0c110d30 92170
initscripts_2.88dsf-56_amd64.deb
8c9d65be33317dd253c5793c4ef5f29186f2d95e6643559d2fd022965377c719 59648
bootlogd_2.88dsf-56_amd64.deb
Files:
47871e8ed96d0dd58da2351c31845a92 1786 admin required sysvinit_2.88dsf-56.dsc
8890133785013c553784ba901b928189 188031 admin required
sysvinit_2.88dsf-56.debian.tar.gz
cacf2f4bbc512869edc308ce229bae82 102192 admin optional
sysvinit_2.88dsf-56_amd64.deb
5e440f90aeb5438de784dda0a784cbe8 140324 admin extra
sysvinit-core_2.88dsf-56_amd64.deb
02ae5fab3e44e9f5c4b57e188d56281f 92324 admin required
sysvinit-utils_2.88dsf-56_amd64.deb
4727611f3341b0460d1447a68e837689 84680 admin required
sysv-rc_2.88dsf-56_all.deb
86f033eebc0db2caa07749f5ecef19b4 92170 admin required
initscripts_2.88dsf-56_amd64.deb
6c8a02e33633a4db2fd17127b34ffac6 59648 admin optional
bootlogd_2.88dsf-56_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iD8DBQFUTBfQ20zMSyow1ykRAlHhAKCpWSJf1aworp0IBBc5YUq6qQVK+QCfehZ3
iqpMVJv/6YNjnaIY2rxA2+4=
=Fml3
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel