Your message dated Fri, 27 Jan 2012 20:53:53 +0000
with message-id <[email protected]>
and subject line Bug#638019: fixed in sysvinit 2.88dsf-19
has caused the Debian Bug report #638019,
regarding please consider moving initctl to /run (at least on kfreebsd-*)
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.)
--
638019: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638019
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysvinit
Version: 2.88dsf-13.11
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: kfreebsd
Please consider moving /dev/initctl to /run/initctl. Using /dev to store named
pipes is not portable and as a result a workaround to use /etc/.initctl on
GNU/kFreeBSD was introduced in 2004 (see #226939).
However, this option is far from ideal. It creates a disparity that might
confuse users. Using /etc for a FIFO is clearly not compliant with FHS. It
does also seem to confuse some programs (see e.g. #637151).
Now that /run is available, I think it'd simplify things if this FIFO node was
moved to that directory.
-- System Information:
Debian Release: 6.0.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.utf8, LC_CTYPE=ca_AD.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/postinst'
--- debian/postinst 2011-08-16 15:06:26 +0000
+++ debian/postinst 2011-08-16 15:07:14 +0000
@@ -16,18 +16,10 @@ esac
umask 022
-case "$(uname -s)" in
- *FreeBSD)
- INITCTL=/etc/.initctl
- ;;
- *)
- INITCTL=/dev/initctl
- ;;
-esac
-
#
-# Check /dev/initctl
+# Check /run/initctl
#
+INITCTL=/run/initctl
if [ "$INITCTL" ] && [ ! -p "$INITCTL" ]
then
echo "sysvinit: creating $INITCTL"
=== modified file 'debian/src/initscripts/etc/init.d/mountall.sh'
--- debian/src/initscripts/etc/init.d/mountall.sh 2011-08-16 15:06:26
+0000
+++ debian/src/initscripts/etc/init.d/mountall.sh 2011-08-16 15:11:46
+0000
@@ -43,26 +43,6 @@ do_start() {
fi
post_mountall
- case "$(uname -s)" in
- *FreeBSD)
- INITCTL=/etc/.initctl
- ;;
- *)
- INITCTL=/dev/initctl
- ;;
- esac
-
- #
- # We might have mounted something over /dev, see if
- # /dev/initctl is there. Look for /usr/share/sysvinit/update-rc.d
- # to verify that sysvinit (and not upstart) is installed).
- #
- if [ ! -p $INITCTL ] && [ -f /usr/share/sysvinit/update-rc.d ]; then
- rm -f $INITCTL
- mknod -m 600 $INITCTL p
- kill -USR1 1
- fi
-
# Execute swapon command again, in case we want to swap to
# a file on a now mounted filesystem.
swaponagain 'swapfile'
=== modified file 'doc/Install'
--- doc/Install 2011-08-16 15:06:26 +0000
+++ doc/Install 2011-08-16 15:08:58 +0000
@@ -48,7 +48,7 @@ You might want to create a file called "
manual page on shutdown to find out more about this.
Running from a read-only file system (CDROM?):
-o All communication to init goes through the FIFO /dev/initctl.
+o All communication to init goes through the FIFO /run/initctl.
There should be no problem using a read-only root file system
IF you use a Linux kernel > 1.3.66. Older kernels don't allow
writing to a FIFO on a read-only file system.
=== modified file 'man/init.8'
--- man/init.8 2011-08-16 15:06:26 +0000
+++ man/init.8 2011-08-16 15:09:32 +0000
@@ -130,7 +130,7 @@ letters \fBF\fP, \fBO\fP or \fBL\fP, ini
the letter \fBF\fP.
.PP
Usage of \fBSIGPWR\fP and \fB/etc/powerstatus\fP is discouraged. Someone
-wanting to interact with \fBinit\fP should use the \fB/dev/initctl\fP
+wanting to interact with \fBinit\fP should use the \fB/run/initctl\fP
control channel - see the source code of the \fBsysvinit\fP package
for more documentation about this.
.PP
@@ -234,7 +234,7 @@ can then manipulate the command line so
the current runlevel.
.PP
.SH INTERFACE
-Init listens on a \fIfifo\fP in /dev, \fI/dev/initctl\fP, for messages.
+Init listens on a \fIfifo\fP in /dev, \fI/run/initctl\fP, for messages.
\fBTelinit\fP uses this to communicate with init. The interface is not
very well documented or finished. Those interested should study the
\fIinitreq.h\fP file in the \fIsrc/\fP subdirectory of the \fBinit\fP
@@ -248,7 +248,7 @@ Has the same effect as \fBtelinit q\fP.
.TP 0.5i
.B SIGUSR1
On receipt of this signals, init closes and re-opens its control fifo,
-\fB/dev/initctl\fP. Useful for bootscripts when /dev is remounted.
+\fB/run/initctl\fP. Useful for bootscripts when /dev is remounted.
.TP 0.5i
.B SIGINT
Normally the kernel sends this signal to init when CTRL-ALT-DEL is
@@ -273,7 +273,7 @@ file in the directory \fI/etc/init.d\fP
/dev/console
/var/run/utmp
/var/log/wtmp
-/dev/initctl
+/run/initctl
.fi
.\"}}}
.\"{{{ Warnings
=== modified file 'src/Makefile'
--- src/Makefile 2011-08-16 15:06:26 +0000
+++ src/Makefile 2011-08-16 15:09:54 +0000
@@ -176,8 +176,8 @@ ifeq ($(ROOT),)
#
# This part is skipped on Debian systems, the
# debian.preinst script takes care of it.
- @if [ ! -p /dev/initctl ]; then \
- echo "Creating /dev/initctl"; \
- rm -f /dev/initctl; \
- mknod -m 600 /dev/initctl p; fi
+ @if [ ! -p /run/initctl ]; then \
+ echo "Creating /run/initctl"; \
+ rm -f /run/initctl; \
+ mknod -m 600 /run/initctl p; fi
endif
=== modified file 'src/init.c'
--- src/init.c 2011-08-16 15:06:26 +0000
+++ src/init.c 2011-08-16 15:11:00 +0000
@@ -133,7 +133,7 @@ char *argv0; /* First arguments; show
int maxproclen; /* Maximal length of argv[0] with \0 */
struct utmp utproto; /* Only used for sizeof(utproto.ut_id) */
char *console_dev; /* Console device. */
-int pipe_fd = -1; /* /dev/initctl */
+int pipe_fd = -1; /* /run/initctl */
int did_boot = 0; /* Did we already do BOOT* stuff? */
int main(int, char **);
@@ -2175,13 +2175,13 @@ void check_init_fifo(void)
int quit = 0;
/*
- * First, try to create /dev/initctl if not present.
+ * First, try to create /run/initctl if not present.
*/
if (stat(INIT_FIFO, &st2) < 0 && errno == ENOENT)
(void)mkfifo(INIT_FIFO, 0600);
/*
- * If /dev/initctl is open, stat the file to see if it
+ * If /run/initctl is open, stat the file to see if it
* is still the _same_ inode.
*/
if (pipe_fd >= 0) {
@@ -2195,7 +2195,7 @@ void check_init_fifo(void)
}
/*
- * Now finally try to open /dev/initctl
+ * Now finally try to open /run/initctl
*/
if (pipe_fd < 0) {
if ((pipe_fd = open(INIT_FIFO, O_RDWR|O_NONBLOCK)) >= 0) {
@@ -2501,7 +2501,7 @@ void process_signals()
}
if (ISMEMBER(got_signals, SIGUSR1)) {
/*
- * SIGUSR1 means close and reopen /dev/initctl
+ * SIGUSR1 means close and reopen /run/initctl
*/
INITDBG(L_VB, "got SIGUSR1");
close(pipe_fd);
@@ -2737,7 +2737,7 @@ int telinit(char *progname, int argc, ch
chdir("/");
/* Open the fifo and write a command. */
- /* Make sure we don't hang on opening /dev/initctl */
+ /* Make sure we don't hang on opening /run/initctl */
SETSIG(sa, SIGALRM, signal_handler, 0);
alarm(3);
if ((fd = open(INIT_FIFO, O_WRONLY)) >= 0) {
=== modified file 'src/initreq.h'
--- src/initreq.h 2011-08-16 15:06:26 +0000
+++ src/initreq.h 2011-08-16 15:10:15 +0000
@@ -1,5 +1,5 @@
/*
- * initreq.h Interface to talk to init through /dev/initctl.
+ * initreq.h Interface to talk to init through /run/initctl.
*
* Copyright (C) 1995-2004 Miquel van Smoorenburg
*
@@ -25,11 +25,7 @@
#include <sys/param.h>
-#if defined(__FreeBSD_kernel__)
-# define INIT_FIFO "/etc/.initctl"
-#else
-# define INIT_FIFO "/dev/initctl"
-#endif
+#define INIT_FIFO "/run/initctl"
#define INIT_MAGIC 0x03091969
#define INIT_CMD_START 0
=== modified file 'src/shutdown.c'
--- src/shutdown.c 2011-08-16 15:06:26 +0000
+++ src/shutdown.c 2011-08-16 15:10:34 +0000
@@ -173,7 +173,7 @@ int init_setenv(char *name, char *value)
/*
* Open the fifo and write the command.
- * Make sure we don't hang on opening /dev/initctl
+ * Make sure we don't hang on opening /run/initctl
*/
memset(&sa, 0, sizeof(sa));
sa.sa_handler = alrm_handler;
--- End Message ---
--- Begin Message ---
Source: sysvinit
Source-Version: 2.88dsf-19
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:
bootlogd_2.88dsf-19_amd64.deb
to main/s/sysvinit/bootlogd_2.88dsf-19_amd64.deb
initscripts_2.88dsf-19_amd64.deb
to main/s/sysvinit/initscripts_2.88dsf-19_amd64.deb
sysv-rc_2.88dsf-19_all.deb
to main/s/sysvinit/sysv-rc_2.88dsf-19_all.deb
sysvinit-utils_2.88dsf-19_amd64.deb
to main/s/sysvinit/sysvinit-utils_2.88dsf-19_amd64.deb
sysvinit_2.88dsf-19.debian.tar.gz
to main/s/sysvinit/sysvinit_2.88dsf-19.debian.tar.gz
sysvinit_2.88dsf-19.dsc
to main/s/sysvinit/sysvinit_2.88dsf-19.dsc
sysvinit_2.88dsf-19_amd64.deb
to main/s/sysvinit/sysvinit_2.88dsf-19_amd64.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.
Roger Leigh <[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: RIPEMD160
Format: 1.8
Date: Sun, 22 Jan 2012 17:07:46 +0000
Source: sysvinit
Binary: sysvinit sysvinit-utils sysv-rc initscripts bootlogd
Architecture: source amd64 all
Version: 2.88dsf-19
Distribution: unstable
Urgency: low
Maintainer: Debian sysvinit maintainers
<[email protected]>
Changed-By: Roger Leigh <[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
sysvinit-utils - System-V-like utilities
Closes: 622785 635025 638019 648433 652337 653126 655582
Changes:
sysvinit (2.88dsf-19) unstable; urgency=low
.
[ Roger Leigh ]
* debian/control:
- initscripts adds versioned Breaks on autofs (<< 5) since
autofs 4.x does not cope with /etc/mtab symlinked to
/proc/mounts. Users should upgrade to autofs5, which works
correctly. (Closes: #653126)
- initscripts Breaks aide << 0.15.1-5 and sysklogd << 1.5-6.2 now
they support /run.
- sysvinit Pre-Depends on initscripts >= 2.88dsf-13.3 in order
to transition initctl to /run.
* sysvinit:
- /sbin/init control channel FIFO is /run/initctl rather than
/dev/initctl (Linux) or /etc/.initctl (FreeBSD). The postinst
migrates the running init to use the new control channel by
replacing the old channel with a symlink prior to issuing a
SIGUSR1 to cause init to reopen its control channel and then
exec of the new version of init using the new path. Thanks
to Robert Millan. (Closes: #638019)
- Add Catalan (ca) translation. Thanks to Innocent De Marchi.
(Closes: #622785)
* sysvinit-utils:
- Upgrade to startpar 0.58. Thanks to Dr. Werner Fink at SuSE for
this updated release. This release incorporates all of the
existing Debian patchset; debian/patches/7[1-9]* have now been
dropped.
* initscripts:
- mountall.sh recreates /run/initctl and sends SIGUSR1 to init
if needed.
- /etc/init.d/rc.local uses only $all in Required-Start;
$remote_fs and $syslog being redundant. Thanks to Regid Ichira.
(Closes: #635025)
- rcS.5 documents that RAMTMP defaults to yes for new
installations, and no for upgrades (since RAMTMP is not present
in /etc/default/rcS). (Closes: #652337)
- /etc/default/rcS is updated using ucf. (Closes: #648433)
- umountfs uses more sophisticated sed expression to compute
PROTECTED_MOUNTS, to support unionfs and more complex cases.
Thanks to Michele Mazzucchi for this patch. (Closes: #655582)
Checksums-Sha1:
8f800b39a09c176a7184aadaab4d092f8e7f193b 1697 sysvinit_2.88dsf-19.dsc
344f5306d9c59851eb5d6de2bea4c1d8bd4e042e 184365
sysvinit_2.88dsf-19.debian.tar.gz
0c7990328581ffd86db6ec61cb8b6239ce34c97d 126558 sysvinit_2.88dsf-19_amd64.deb
b3d4355dceb562207cec11ca216a28a74cd8fe3c 89278
sysvinit-utils_2.88dsf-19_amd64.deb
6e6746b6b90f119e6c0d729012c8554a336e4be2 80424 sysv-rc_2.88dsf-19_all.deb
1a8208cabd9277dbd3ab58d7153ae36619e94895 78680 initscripts_2.88dsf-19_amd64.deb
d4551915b9963d0a8d32b50a56ff82ca6f7048b2 48932 bootlogd_2.88dsf-19_amd64.deb
Checksums-Sha256:
9037d6894f2323918616e4dd7b575e10b9727ee55f13bed405188da3199b5bd1 1697
sysvinit_2.88dsf-19.dsc
3a5217ac542b7a624a4cb3b01b9f7f4a57987aa3713602f4f15ab7b6c0803ad6 184365
sysvinit_2.88dsf-19.debian.tar.gz
a3aa5e1bbf03635a9f644a43cd24e841b394d9f2498200813aaeb55ee4d5772f 126558
sysvinit_2.88dsf-19_amd64.deb
0f63ba946166c6e331162c78be42885bee6ec9ff0803abe05e58b9891b224832 89278
sysvinit-utils_2.88dsf-19_amd64.deb
f35bc5f8ddc2cd8714fefa9e65b2ab9d34b838b899243b8caac5372285b4905c 80424
sysv-rc_2.88dsf-19_all.deb
ffab4565a39ecd1289b7cf316e9154b7a275551fbcd457b80a6aa811378ca1b6 78680
initscripts_2.88dsf-19_amd64.deb
e737b0b1a854dcec435c384ae37c095b8cb3d7a9ee36e18d4a0dbc8416720372 48932
bootlogd_2.88dsf-19_amd64.deb
Files:
2e6ecade54544d1b7f67214285c6d0fe 1697 admin required sysvinit_2.88dsf-19.dsc
6cf55dedf0a7c688b22634c1abd7dbb0 184365 admin required
sysvinit_2.88dsf-19.debian.tar.gz
85c84ffcbb1a12e06a2fc858dcad1a3c 126558 admin required
sysvinit_2.88dsf-19_amd64.deb
4f9ffa107a87b6ef3b7aad8f86f36cdf 89278 admin required
sysvinit-utils_2.88dsf-19_amd64.deb
4eed93d32ec7d263195b294a80b2e218 80424 admin required
sysv-rc_2.88dsf-19_all.deb
d2cc503b1721937eb603a9bf1dd9ee5e 78680 admin required
initscripts_2.88dsf-19_amd64.deb
57827ebdfc05b03c701b5c380eece68e 48932 admin optional
bootlogd_2.88dsf-19_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEAREDAAYFAk8jB0QACgkQVcFcaSW/uEjWkACcCD9G31kBgMInXJBlWQQO2mwF
nKwAoPWyG/LurnytgVTsz5ksPoH7SWcF
=cIg7
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel