# # spec file for package sysvinit # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %bcond_with util_linux %if 0%{suse_version} < 1300 %global with_util_linux 1 %endif Name: sysvinit %define PDVER 2.0.2 %define KPVER 2.21 %define SCVER 1.16 %define SIVER 2.88+ %define START 0.58 Version: %{SIVER} Release: 89.1.2 Summary: SysV-Style init License: GPL-2.0+ Group: System/Base BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: audit-devel BuildRequires: libselinux-devel BuildRequires: libsepol-devel BuildRequires: pam-devel #!BuildIgnore: sysvinit-tools Requires(post): coreutils grep mkinitrd Requires(postun): mkinitrd Url: http://savannah.nongnu.org/projects/sysvinit/ Source: sysvinit-%{SIVER}dsf.tar.bz2 Source2: killproc-%{KPVER}.tar.bz2 Source3: powerd-%{PDVER}.tar.bz2 Source4: showconsole-%{SCVER}.tar.bz2 Source5: startpar-%{START}.tar.bz2 Source6: rc.powerd Source7: %{name}-rpmlintrc Source8: mkinitrd-boot.sh Source9: mkinitrd-kill1.sh Source10: mkinitrd-kill2.sh Patch: %{name}-%{version}dsf.dif Patch1: %{name}-2.82-startstop.patch Patch2: %{name}-2.88dsf-suse.patch Patch3: %{name}-2.88dsf-scripts2.patch Patch4: notify-pam-dead.patch Patch5: %{name}-2.88dsf-multiple-sulogin.patch Patch6: %{name}-%{version}dsf-run.diff Patch7: %{name}-%{version}dsf-crypt.patch Patch8: %{name}-%{version}dsf-blowfish.dif Patch9: %{name}-2.88dsf-no-kill.patch Patch10: %{name}-%{version}dsf-env.patch Patch11: %{name}-%{version}dsf-dostat.patch # PATCH-FIX-UPSTREAM -- killall5: handle strange names of executables Patch12: %{name}-%{version}dsf-sulogin.diff # PATCH-FIX-SUSE -- sulogin: find suitable console device even if first is not usable Patch13: %{name}-%{version}dsf-xen.patch Patch20: powerd-%{PDVER}.dif Patch21: powerd-%{PDVER}-getaddrinfo.patch Patch30: killproc-%{KPVER}.dif Patch31: killproc-2.18-open_flags.dif Patch40: showconsole-%{SCVER}.dif Patch41: showconsole-1.16-deadlock.diff Patch42: showconsole-1.16-glibc.dif Patch50: startpar-%{START}.dif Requires: mingetty Requires: sysvinit-tools %description System V style init programs by Miquel van Smoorenburg that control the booting and shutdown of your system. These support a number of system runlevels, each one associated with a specific set of utilities. For example, the normal system runlevel is 3, which starts a getty on virtual consoles tty1-tty6. Runlevel 5 starts xdm. Runlevel 0 shuts down the system. See the individual man pages for inittab, initscript, halt, init, powerd, reboot, runlevel, shutdown, and telinit for more information. %package tools Summary: Tools for basic booting Group: System/Base %if 0%{suse_version} > 1120 Requires(preun): coreutils %insserv_prereq Requires(postun): coreutils %insserv_prereq %else PreReq: coreutils %insserv_prereq %endif %description tools Helper tools from sysvinit that support booting, including but not exclusive to startpar, killproc and pidof. System V init specific programs are in the sysvinit package. %package init Summary: Provides /sbin/init for sysvinit Group: System/Base Provides: sbin_init Conflicts: otherproviders(sbin_init) Requires: %{name} %description init Just some symlinks and manual page for sysvinit %prep %setup -n %{name}-%{SIVER}dsf -q -b 2 -b 3 -b 4 -b 5 %patch1 -p0 -b .startstop %patch2 -p0 -b .suse %patch3 -p0 -b .scripts2 %patch4 -p0 -b .pam %patch5 -p0 -b .sulogin %patch6 -p0 -b .run %patch7 -p0 -b .crypt %patch8 -p0 -b .blowfish %patch9 -p0 -b .no-kill %patch10 -p0 -b .env %patch11 -p0 -b .dostat %patch12 -p0 -b .ka5 %patch13 -p0 -b .xen #%patch pushd doc mkdir killproc powerd showconsole popd pushd ../powerd-%{PDVER} %patch20 %patch21 ln -t../%{name}-%{SIVER}dsf/doc/powerd README SUPPORTED FAQ powerd.conf.monitor powerd.conf.peer popd pushd ../killproc-%{KPVER} %patch30 %patch31 -p0 -b .dialog ln -t../%{name}-%{SIVER}dsf/doc/killproc README popd pushd ../showconsole-%{SCVER} %patch40 %patch41 -p1 %patch42 -p0 ln -t../%{name}-%{SIVER}dsf/doc/showconsole README popd pushd ../startpar-%{START} %patch50 popd #%_fixowner . #%_fixgroup . /bin/chmod -Rf a+rX,g-w,o-w . %build RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -D_FILE_OFFSET_BITS=64 -pipe" CC=%__cc export RPM_OPT_FLAGS CC make %{?_smp_mflags} pushd ../showconsole-%{SCVER} make %{?_smp_mflags} CC="%__cc" popd pushd ../killproc-%{KPVER} make %{?_smp_mflags} \ INC="-I../showconsole-%{SCVER} \ -L../showconsole-%{SCVER}" \ CC="%__cc -std=gnu89" popd pushd ../powerd-%{PDVER} %ifnarch s390 s390x %configure --prefix= --bindir='$(DESTDIR)/sbin' \ --mandir='$(DESTDIR)%{_mandir}' \ --sbindir='$(DESTDIR)/sbin' make %{?_smp_mflags} CFLAGS="-I../sysvinit-%{SIVER}dsf/src $RPM_OPT_FLAGS " %endif popd pushd ../startpar-%{START} make %{?_smp_mflags} \ INC="-I../showconsole-%{SCVER} \ -L../showconsole-%{SCVER}" \ CC="%__cc -std=gnu89" popd %install rm -rf ${RPM_BUILD_ROOT} mkdir ${RPM_BUILD_ROOT} mkdir -m 755 -p ${RPM_BUILD_ROOT}/bin mkdir -m 755 -p ${RPM_BUILD_ROOT}/dev mkdir -m 755 -p ${RPM_BUILD_ROOT}/etc mkdir -m 755 -p ${RPM_BUILD_ROOT}/sbin mkdir -m 755 -p ${RPM_BUILD_ROOT}/usr/bin mkdir -m 755 -p ${RPM_BUILD_ROOT}/usr/include mkdir -m 755 -p ${RPM_BUILD_ROOT}%{_mandir}/man1 mkdir -m 755 -p ${RPM_BUILD_ROOT}%{_mandir}/man5 mkdir -m 755 -p ${RPM_BUILD_ROOT}%{_mandir}/man8 make install -C src MANPATH=%{_mandir} ROOT=${RPM_BUILD_ROOT} WITH_SELINUX=yes DISTRO=SuSE mv ${RPM_BUILD_ROOT}/sbin/init ${RPM_BUILD_ROOT}/sbin/sysvinit mv ${RPM_BUILD_ROOT}%{_mandir}/man8/init.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/sysvinit.8 %{__ln_s} sysvinit ${RPM_BUILD_ROOT}/sbin/init %{__ln_s} sysvinit.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/init.8 mkdir -p ${RPM_BUILD_ROOT}/lib/sysvinit %{__ln_s} -f ../sbin/sysvinit ${RPM_BUILD_ROOT}/lib/sysvinit/telinit %{__ln_s} -f sysvinit ${RPM_BUILD_ROOT}/sbin/telinit test -p ${RPM_BUILD_ROOT}/dev/initctl || { rm -f ${RPM_BUILD_ROOT}/dev/initctl mknod ${RPM_BUILD_ROOT}/dev/initctl p chmod 600 ${RPM_BUILD_ROOT}/dev/initctl } pushd ../showconsole-%{SCVER} make install MANPATH=%{_mandir} INSTBINFLAGS="-m 0700" DESTDIR=${RPM_BUILD_ROOT} popd pushd ../killproc-%{KPVER} make install MANPATH=%{_mandir} INSTBINFLAGS="-m 0755" DESTDIR=${RPM_BUILD_ROOT} popd pushd ../powerd-%{PDVER} %ifnarch s390 s390x make install DESTDIR=${RPM_BUILD_ROOT} echo '# ' > ${RPM_BUILD_ROOT}/etc/powerd.conf echo '# /etc/powerd.conf for powerd version-2.02' >> ${RPM_BUILD_ROOT}/etc/powerd.conf echo '# ' >> ${RPM_BUILD_ROOT}/etc/powerd.conf echo '# read manual page of detectups(8) and powerd(8) its self.' >> ${RPM_BUILD_ROOT}/etc/powerd.conf echo '# ' >> ${RPM_BUILD_ROOT}/etc/powerd.conf mkdir -p ${RPM_BUILD_ROOT}/etc/init.d install -m 0744 %{SOURCE6} ${RPM_BUILD_ROOT}/etc/init.d/powerd ln -sf /etc/init.d/powerd ${RPM_BUILD_ROOT}/sbin/rcpowerd %endif popd pushd ../startpar-%{START} make install DESTDIR=${RPM_BUILD_ROOT} popd # # Install mkinitrd scriptlets # install -d $RPM_BUILD_ROOT/lib/mkinitrd/scripts install -m 0755 %{SOURCE8} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-blogd.sh install -m 0755 %{SOURCE9} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-killblogd.sh install -m 0755 %{SOURCE10} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-killblogd2.sh # # Remove files not packed: # rm -f ${RPM_BUILD_ROOT}/usr/include/{initreq.h,libblogger.h} rm -f ${RPM_BUILD_ROOT}/usr/lib/libblogger.a rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mesg.1* rm -f ${RPM_BUILD_ROOT}%{_bindir}/mesg %ifarch s390 s390x rm -f ${RPM_BUILD_ROOT}%{_mandir}/man8/powerd.8* rm -f ${RPM_BUILD_ROOT}%{_mandir}/man8/detectups.8* rm -f ${RPM_BUILD_ROOT}/sbin/powerd rm -f ${RPM_BUILD_ROOT}/sbin/detectups %endif chmod 444 ${RPM_BUILD_ROOT}%{_mandir}/man?/* %if ! %{with util_linux} rm -vf ${RPM_BUILD_ROOT}/bin/mountpoint rm -vf ${RPM_BUILD_ROOT}/usr/bin/utmpdump rm -vf ${RPM_BUILD_ROOT}/sbin/sulogin rm -vf ${RPM_BUILD_ROOT}%{_mandir}/man1/mountpoint.1* rm -vf ${RPM_BUILD_ROOT}%{_mandir}/man1/utmpdump.1* rm -vf ${RPM_BUILD_ROOT}%{_mandir}/man8/sulogin.8* %endif %{__ln_s} -f killall5 ${RPM_BUILD_ROOT}/sbin/pidof # remove unwanted, comes from utuil-linux rm -vf ${RPM_BUILD_ROOT}/bin/mountpoint rm -vf ${RPM_BUILD_ROOT}/usr/bin/utmpdump rm -vf ${RPM_BUILD_ROOT}/usr/bin/last rm -vf ${RPM_BUILD_ROOT}/usr/bin/lastb rm -vf ${RPM_BUILD_ROOT}/sbin/sulogin rm -vf ${RPM_BUILD_ROOT}/sbin/rcpowerd %preun tools %stop_on_removal powerd %post ret=0 if test -x /sbin/telinit -a -p /dev/initctl -a -f /proc/1/exe -a -d /proc/1/root -a ! -d /.build -a -x /sbin/init; then icount=$(grep -cE '^[[:alnum:]]+:[[:alnum:]]*:' /etc/inittab 2>/dev/null || echo 0) if test $(stat -Lc '%%D-%%i' /) = $(stat -Lc '%%D-%%i' /proc/1/root) -a $icount -gt 6 ; then if test $(stat -Lc '%%D-%%i' /sbin/init) = $(stat -Lc '%%D-%%i' /sbin/sysvinit); then /sbin/telinit u fi elif test $icount -le 6 ; then echo 'Broken /etc/inittab found, installing and using %{name} make no sense!' 1>&2 ret=1 fi fi if test -x /sbin/mkinitrd_setup; then mkinitrd_setup fi exit $ret %postun tools %restart_on_update powerd %insserv_cleanup %postun if test -x /sbin/mkinitrd_setup; then mkinitrd_setup fi %files %defattr (-,root,root,755) /sbin/sysvinit %dir /lib/sysvinit /lib/sysvinit/telinit %files init %defattr (-,root,root,755) /sbin/halt /sbin/init /sbin/poweroff /sbin/reboot /sbin/runlevel /sbin/shutdown /sbin/telinit %doc %{_mandir}/man8/halt.8.gz %doc %{_mandir}/man5/initscript.5.gz %doc %{_mandir}/man5/inittab.5.gz %doc %{_mandir}/man8/init.8.gz %doc %{_mandir}/man8/sysvinit.8.gz %doc %{_mandir}/man8/poweroff.8.gz %doc %{_mandir}/man8/reboot.8.gz %doc %{_mandir}/man8/runlevel.8.gz %doc %{_mandir}/man8/shutdown.8.gz %doc %{_mandir}/man8/telinit.8.gz %dir /lib/mkinitrd %dir /lib/mkinitrd/scripts /lib/mkinitrd/scripts/boot-blogd.sh /lib/mkinitrd/scripts/boot-killblogd.sh /lib/mkinitrd/scripts/boot-killblogd2.sh %files tools %defattr (-,root,root,755) %doc COPYING COPYRIGHT doc/Propaganda %doc doc/Changelog doc/killproc doc/showconsole %ifnarch s390 s390x %config /etc/powerd.conf %config /etc/init.d/powerd %doc doc/powerd %endif %config /etc/pam.d/init %if %{with util_linux} #/sbin/sulogin #/bin/mountpoint #/usr/bin/utmpdump %endif /bin/pidof /bin/usleep /bin/fsync #/usr/bin/last #/usr/bin/lastb /sbin/blogger /sbin/blogd /sbin/fstab-decode /sbin/showconsole /sbin/setconsole /sbin/isserial /sbin/checkproc /sbin/pidofproc /sbin/killproc /sbin/killall5 /sbin/pidof %ifnarch s390 s390x /sbin/powerd /sbin/detectups #/sbin/rcpowerd %endif /sbin/startpar /sbin/rvmtab /sbin/vhangup /sbin/mkill /sbin/startproc /sbin/start_daemon %if %{with util_linux} %doc %{_mandir}/man1/mountpoint.1.gz %doc %{_mandir}/man1/utmpdump.1.gz %doc %{_mandir}/man8/sulogin.8.gz %endif %doc %{_mandir}/man1/last.1.gz %doc %{_mandir}/man1/lastb.1.gz %doc %{_mandir}/man1/usleep.1.gz %doc %{_mandir}/man1/fsync.1.gz # /usr/include/libblogger.h # /usr/lib/libblogger.a %doc %{_mandir}/man8/blogger.8.gz %doc %{_mandir}/man8/blogd.8.gz %doc %{_mandir}/man8/fstab-decode.8.gz %doc %{_mandir}/man8/showconsole.8.gz %doc %{_mandir}/man8/setconsole.8.gz %doc %{_mandir}/man8/isserial.8.gz %doc %{_mandir}/man8/checkproc.8.gz %doc %{_mandir}/man8/pidofproc.8.gz %doc %{_mandir}/man8/killall5.8.gz %doc %{_mandir}/man8/killproc.8.gz %doc %{_mandir}/man8/pidof.8.gz %ifnarch s390 s390x %doc %{_mandir}/man8/powerd.8.gz %doc %{_mandir}/man8/detectups.8.gz %endif %doc %{_mandir}/man8/startproc.8.gz %doc %{_mandir}/man8/start_daemon.8.gz %doc %{_mandir}/man8/startpar.8.gz %doc %{_mandir}/man8/rvmtab.8.gz %doc %{_mandir}/man8/vhangup.8.gz %doc %{_mandir}/man8/mkill.8.gz %if 0 %doc contrib/bootlogd.README /sbin/bootlogd /sbin/intr %doc %{_mandir}/man8/bootlogd.8.gz %doc %{_mandir}/man8/intr.8.gz %endif %changelog * Tue Jul 23 2013 ohering@suse.de - Remove usage of absolute paths - List all needed binaries in programs tag * Fri Jun 7 2013 werner@suse.de - Skip binaries now part of util-linux * Wed Apr 24 2013 werner@suse.de - Add sanity check for /etc/inittab to avoid reload on systemd systems (bnc#813510) * Mon Mar 4 2013 coolo@suse.com - move mkinitrd scripts of blogs to sysvinit-init, it's breaking systemd/plymouth (bnc#804458) * Fri Aug 17 2012 werner@suse.de - Added patch from Roger Leigh to correct the manual page of startpar * Fri Aug 10 2012 werner@suse.de - Increase daemon detection time in startproc to give started process the time to daemonize (bnc#757643) * Thu Aug 2 2012 werner@suse.de - Add fix/workaround in blogd for new glibc internal pthread API to avoid an glibc nptl assert report in bnc#772055 * Thu Jun 21 2012 lnussel@suse.de - fix deadlock in blogd that happens on shutdown (bnc#730193) * Wed May 23 2012 werner@suse.de - Fix parameter turner in fscanf to really detect the file system type in startproc/checkproc/killproc (bnc#762489) * Fri May 4 2012 werner@suse.de - Add two patch from upstream + Avoid crash for exported environment for processes init spawns - Fix typo as the script for powerd (bnc#758920) * Mon Apr 16 2012 mvyskocil@suse.cz - add mingetty to Requires * remove it as dependency from aaa_base ad it's needed for sysvinit only * Fri Mar 16 2012 werner@suse.de - Add two patch from upstream + Handle deleted binaries in pidof (was upstream bug #34992) + Allow init to delte extra environment variables (was upstream bug #35858) + Avoid that init double environment variables for its childs (was upstream bug #35855) * Wed Feb 8 2012 werner@suse.de - Work around dully check script of obs * Wed Feb 1 2012 werner@suse.de - Avoid useless check for runlevel as access(2) now works on kernel 3.0 and above, this fixes bnc#744538 * Tue Jan 31 2012 werner@suse.de - New killproc-2.21 which includes the last bug fixes as well as new features like support for ionice with startproc - New showconsole-1.16 which includes the last bug fixes - New startpar-0.58 which includes the last bug fixes as well as the patches from Debian - Make rpmlint happy * Mon Dec 19 2011 werner@suse.de - Avoid trouble with indirect console names (bnc#731563) - Unmount proc file system if initial not mounted (bnc#718385) * Thu Oct 20 2011 werner@suse.de - Use pipe to synch parent with child in startproc (bnc#713342) * Tue Oct 18 2011 werner@suse.de - Add option -x to be able to identify scripts overwriting their command line (bnc#723708) * Mon Oct 17 2011 werner@suse.de - There was never a version 1.16 for showconsole - Add some code to be able to detect programs even as user with kernel 3.0 and above (bnc#723072) * Tue Oct 11 2011 coolo@suse.com - do not telinit u if /sbin/init is not sysvinit * Tue Oct 11 2011 coolo@suse.com - split out the symlink /sbin/init into a special subpackage, which does _NOT_ do a split provide. systemd-sysvinit will provide this, so you need to do extra work if you want to stay on sysvinit * Tue Oct 11 2011 coolo@suse.com - remove unused files * Tue Oct 4 2011 uli@suse.com - cross-build fix: use %%__cc, %%configure macros * Thu Sep 8 2011 giecrilj@stegny.2a.pl - update to showconsole-1.16 (manual page syntax) * Fri Sep 2 2011 werner@suse.de - Update to killproc-2.20 - Update to showconsole-1.15 - Clean spec file * Sat Aug 13 2011 giecrilj@stegny.2a.pl - added documentation (including mandatory COPYING) - corrected errors in manual pages - incorporated showconsole-1.14.dif into showconsole-1.15 * Mon Aug 1 2011 werner@suse.de - libblogger: check for SIGPIPE and block SIGPIPE during write, this also does help startpar not to die on SIGPIPE (bnc#679671) - blogd: add a further check for nsigsys in writelog() (bnc#679671) * Wed Jul 27 2011 werner@suse.de - Add workaround for blowfish signedness bug (CVE-2011-2483) * Wed Jul 27 2011 werner@suse.de - Sulogin: respect byte order that is do not mix chars and ints (bnc#707724) * Tue Jul 26 2011 werner@suse.de - Sulogin: enforce reconnection of stdin/stdout/stderr if a device was specified. - Sulogin: if zero is read at reading the passwd guess it's done. * Tue Jun 28 2011 aj@suse.de - Fix build without libcrypt.a (without static glibc), added patch sysvinit-2.88+dsf-crypt.patch. * Wed Jun 1 2011 lnussel@suse.de - use /run for utmp as that's already mounted by the initrd * Thu May 19 2011 werner@suse.de - Add latest change for sulogin multiple console devices support * Wed Apr 20 2011 werner@suse.de - Aoid possible trouble due raw pts/ptmx terminal line in both blogd and startpar - Block SIGTTOU during tcsetattr(3) library call in both blogd and startpar - Replace select(2) with pselect(2) in blogd and ensure that the timeout structure will be reseted after a timeout * Tue Apr 19 2011 werner@suse.de - Correct shutdown messages of startpar send via blogd * Tue Apr 19 2011 werner@suse.de - Avoid possible races which can be happen if blogd sees a signal and will exit then (related to bnc#642289) * Fri Apr 15 2011 werner@suse.de - Fix exit code of checkproc in case of an existing pid file without running process (bnc#687547) * Wed Apr 6 2011 werner@suse.de - Fix bug in killproc that is do not stop searching for a match if a mountpoint does not match, reported by Friedrich Haubensak. * Fri Apr 1 2011 werner@suse.de - Let sulogin respect device on the command line as well as the standard input - Let sulogin initialize serial terminals * Thu Mar 31 2011 werner@suse.de - Remove debug code from showconsole/blogd - Make serial console tc init work even with blogd - sulogin: add support for multiple console devices * Fri Mar 25 2011 werner@suse.de - New showconsole verion 1.14 * Use sysfs file as fallback if possible * Add more sanity checks to avoid looping on tty0 * Fri Mar 25 2011 werner@suse.de - Fix triggered endless loop in blogd (bnc#642289) * Writing on tty0 caused blogd to re-read its own messages * The usage of ttyname(3) on /dev/console can fail * Tue Mar 15 2011 werner@suse.de - Update to current SVN version of sysvinit 2.88dsf: * Fix counting message lines in wall. Patch from Petr Lautrbach. * Fix bad printf conversion specifier in wall. Patch from Sébastien Luttringer. * Add patches from Openwall project. Thanks goes to Solar Designer. * Add code to detect the system consoles with the help of the new /proc/consoles files of linux kernel 2.6.38+ * Try to make utmpdump IPv6 valid, change based on suggestion from Navdeep Bhatia (see local bug #32429) * Fix signal and alarm handling based on the patch from Florent Viard. (was local bug #32304) * Add fix for Redhat bug #573346: last incorrectly displays IPv6 addresses (was local bug #29497) * Correct fix for Debian bug #547073: use IUTF8 flag if defined and if already set to make sure the utf-8 flag is not cleared from the tty. Patch from Samuel Thibault. * Include limits.h in killall.c to enforce definition of PATH_MAX * Fix sysvinit bug #29758 Linker invocation should not contain headers. Change based on patch from Elias Pipping. * Add fix for Debian bug #580272: use return value 1 of is_selinux_enabled() to determine if SELinux is enabled, otherwise initialize SELinux and load the policy. Patch from Petter Reinholdtsen. * Make quotes visible in example of the manual page of fstab-decode * Add #ifdef in bootlogd.c to avoid gcc warnings about unused variable on non-linux platforms. * Only set the VSWTC field for termios in init if it is available, to get the source building on FreeBSD. * Fri Mar 11 2011 werner@suse.de - startpar: fix location of consoles under /proc - startpar: ignore errors from system console not being a tty * Thu Mar 10 2011 werner@suse.de - Make blogd work together with kernel from 11.4 even on a serial system console (bnc#672450) * Thu Mar 3 2011 werner@suse.de - Make option -k for killproc utilities work for normal users even if the exe link of an own process remains to root (bnc#664941) * Tue Feb 15 2011 werner@suse.de - New killproc version 2.19: bug fix update * Thu Feb 10 2011 werner@suse.de - Support the socket forwarding of systemd (bnc#656104) * Tue Feb 8 2011 werner@suse.de - Make real device comparision in killproc/checkproc to fix bnc#644171 - Also make ignore mode in checkproc work - Enhance mkill to work on root fs and ignore kernel threads * Mon Feb 7 2011 werner@novell.com - New killproc version 2.18 * Fri Feb 4 2011 werner@novell.com - Killproc: * Add new program rvmtab to write out the current content of /proc/mounts in the reverse mount order determined with the help of /proc/self/mountinfo * Use faster pointer list implementation * Thu Jan 27 2011 werner@novell.com - Killproc: Sort mount info pointers in the reverse order of the directory depth to become the string compare of the readed link name of the exe link more safely. * Fri Jan 21 2011 werner@suse.de - Killproc: Do not be fooled if a device is mounted several times * Tue Nov 9 2010 werner@suse.de - Change showconsole to use newest /proc/tty/consoles API * Fri Oct 29 2010 werner@suse.de - Add newline after blogger message * Wed Oct 27 2010 werner@suse.de - Fix cast&past error in killproc/checkproc * Thu Oct 21 2010 werner@suse.de - New killproc version 2.17 * Use /proc/self/mountinfo to avoid system call stat(2) on running binaries not located on the mount point of the current handled program * Avoid to be detect sub (shadow) mounts on NFS mounts - New showconsole 1.13 - Correct position of string pointer in NFS struct used in killall5/pidof * Tue Oct 12 2010 werner@suse.de - libblogger: set O_CLOEXEC for named FIFO /dev/blog (bnc#645793) * Mon Oct 4 2010 werner@suse.de - Add exit code exception for checkproc for the case of a not installed program, use exit code 4 (bnc#643433) * Fri Oct 1 2010 werner@suse.de - blogd: correct order of setting back termios and termios locks - startpar: avoid EIO in do_forward if do_forward becomes a background process - Make sure that after installation of /sbin/init the init process does re-execute that is split %%post into one for the tools sub package and one of the main package * Wed Sep 22 2010 werner@suse.de - New showconsole version 1.12 * Use /proc/tty/consoles if ioctl TIOCGDEV does not exist * Make pseudo terminal raw as it is not show anything - New startpar 0.57 * Set raw pseudo terminals only once * Set SIGTTIN to default before executing child * Ignore error on reading termios * Mon Aug 23 2010 werner@suse.de - New showconsole version 1.11 * Handle more than two console devices * Speed up used pts/tty pair by enabling raw mode * Implement termios locking scheme but disable it as it may interfere with sulogin and others using the old console - Enabling full raw mode for pty/tty pairs of startpar * Thu Jul 29 2010 werner@suse.de - New startpar version 0.56 * Handle processes within signal handler * Make first process loop more readable * Use pselect(2) to wait on SIGCHLD without using a pipe * Tue Jul 27 2010 werner@suse.de - Fix typo that is use "cmdline" instead of "cmd" (bnc#623766) * Tue Jul 20 2010 werner@suse.de - Enforce killproc to wait even if the SIGTERM has been specified on the command line. This should avoid the in most cases that the daemon has not finished its response on SIGTERM, see bug bnc#623460 and bug bnc#595796. * Fri Jul 16 2010 werner@suse.de - Newer killproc sends only SIGTERM as required by LSB if -TERM is specified on the command line. Use the default which is SIGTERM followed by SIGKILL if the timeout of 5 seconds is reached. * Wed Jun 2 2010 coolo@novell.com - prereq does not fix bnc#610628, the real problem is the cycle of sysvinit->sysvinit-tools->mkinitrd <--, which is broken up by simply ignoring one requirement. If this requirement is the one between sysvinit->sysvinit-tools, we get in deep trouble. Way deeper trouble than missing mkinitrd_setup in sysvinit-tools's %%post * Tue Jun 1 2010 coolo@novell.com - Use Prereq instead of normal Requires to force an early installation of sysvinit-tools (bnc#610628) * Fri May 28 2010 werner@suse.de - Implemenation of a workaround of missing console messages in blogd (bnc#593957) * Fri May 21 2010 werner@suse.de - Avoid crash due changed common-session-pc (bnc#605681) * Mon May 17 2010 werner@suse.de - Add patch from Thomas for moving powerd from using gethostbyname() to getaddrinfo() - Add upstream patch for correct using SELinux API * Wed May 12 2010 pth@ssue.de - Apply sysvinit-2.88dsf-utf8.dif without -p2. - Fix sysvinit-2.88dsf-utf8.dif (Changelog patch didn't apply). * Thu Apr 29 2010 werner@suse.de - Add URL of upstream location * Tue Apr 27 2010 werner@suse.de - Do not overwrite UTF8 input terminal setting as this may cause trouble on system consoles forwarded to a foreign serial console * Tue Apr 13 2010 werner@suse.de - Add patch to make last(1) knowing latest IPv6 specs * Mon Apr 12 2010 werner@suse.de - Be LSB compliant with killproc (bnc#595796, bnc#578246) * Fri Apr 9 2010 werner@suse.de - Correct Pre-Requires to reflect package split - Update to sysvinit (2.88dsf) world; urgency=low * Mention new home on Savannah in README. * Revert change from Fedora/RedHat where the now obsolete command INIT_CMD_CHANGECONS was introduced. Based on feedback and patch from Bill Nottingham. * Adjust makefile to make sure the install directories are created before files are copied into them. * Simplify build rules, based on patch from Mike Frysinger and Gentoo. * Fix minor bug in optimizing of argument parsing. Based on report from jakemus on freshmeat. * Add casts to get rid of compiler warning about signed/unsigned issues. * Change tty handling in init to make sure the UTF-8 flag is not cleared on boot. Patch from Samuel Thibault. * Add Makefile in toplevel directory. * Print usage information when shutdown is used by non-root user. Patch from Mike Frysinger and Gentoo. * Sync shutdown manual page and usage information. Patch from Mike Frysinger and Gentoo. * Fix race condition in utmp writing. Patch from Gil Kloepfer via Mike Frysinger and Gentoo. * Rewrite findtty() in bootlogd to recursively search /dev/ for the correct device, to handle terminal devices for example in /dev/pty/. Patch from Debian. * Make sure bootlogd findpty() returns an error value when it fails to find a usable pty. Patch from Rob Leslie via Debian. * Make sure bootlogd fflush() every line, even if asked not to flush to disk using fdatasync(). Patch from Scott Gifford via Debian. * Add compatibility code to handle old path "/etc/powerstatus" for a while. * Incude definition for MNT_DETACH which is missing in older GNU libc headers. * Do not strip binaries before installing them, to make it easier to get binaries with debug information installed. * Add the comment from Andrea Arcangeli about the correct place of setting the default childhandler within spawn(). * Make sure that newline is printed out for last(1) even if an utmp record entry is truncated. * Check if utmp not only exists but also is writable and delay writing out of the utmp runlevel record if utmp is not writable. * Be able to find libcrypt also on 64 bit based architectures. * Add option -w to the last command to display the full user and domain names in the output. Patch from Petr Lautrbach. * Add a manual page for utmpdump as this tool is sometimes very useful even if not intended for normal use. * Use paths.h macros for wall * Change path "/etc/powerstatus" to "/var/run/powerstatus" * Detected also removable block devices at halt/reboot to be able to flush data and send them the ATA standby command. This should avoid data loss on USB sticks and other removable block devices. * Flush block devices on halt/reboot if not done by the kernel. * Set SHELL to /bin/sh in the environmant of shutdown. * Retry to write out shutdown messages if interrupted. * pidof/killall5 - make omit pid list a dynamic one. * pidof - provide '-n' to skip stat(2) syscall on network based FS. * init - avoid compiler warnings * init - initialize console by using the macros from ttydefaults.h * init - add the possiblity to ignore further interrupts from keyboard * init - add the possiblity to set sane terminal line settings * sulogin - add the possibility to reset the terminal io * Fix some minor problems * init - enable is_selinux_enabled() to detect selinuxfs * Add fix for Debian bug #536574 -- Can be enabled by -DACCTON_OFF * Add helper program fstab-decode to make it easier to handle /etc/mtab content. Patch by Miloslav Trmac and Fedora. * Add fix for Debian bug #335023 - Make sure TERM is set on FreeBSD. * Add fix for Debian bug #374038 - Make it clear that shutdown -c can only cancel a waiting shutdown, not an active one. * Add note to pidof manual page about the use of readlink(2). Patch by Bill Nottingham and Fedora. * Add PAM patch contrib/notify-pam-dead.patch based on Debian bug [#68621], which will add PAM support for programs spawned by init on the console like sulogin. Based on patch by Topi Miettinen. This patch is not applied by default yet while we review its usefullness. It is only helpful for session handling, as sulogin do not use and will not use a PAM conv() function. The current sulogin is able to handle DES as well as MD5, SHA, and Blowfish encrypted passwords due using getpwnam(3). * Move utmp/wtmp before the execvp() in spawn() to be sure to use the correct pid even on a controlling tty * Remaining problem is that the pid of the second fork() for getting a controlling tty isn't that reported by spawn() * Re-enable writting utmp/wtmp for boot scripts * Extend sulogin to support additional encryption algorithms * Re-enable maintenance message of sulogin * Enable the sulogin fallback password check to handle MD5, SHA, and Blowfish encrypted passwords in case of getpwnam(3) fails. * sulogin picking the SELinux context was broken. Patch by Daniel Walsh * Fri Apr 9 2010 werner@suse.de - Start the service sshd as early as possible (bnc#594223) * Tue Mar 23 2010 werner@suse.de - Test out sysvinit (2.88dsf) UNRELEASED; urgency=low - Update to sysvinit (2.87dsf) world; urgency=low * Document -e and -t options for telinit in init(8). * Document in halt(8) that -n might not disable all syncing. Patch by Bill Nottingham and Fedora * Adjust output from "last -x". In reboot lines, print endpoint of uptime too. In shutdown lines print downtimes rather than the time between downs. Fix typo in string compare in last.c. Patch by Thomas Hood. * Improve handling of IPv6 addresses in last. Patch from Fedora. * Add new option -F to last, to output full date string instead of the short form provided by default. Patch from Olaf Dabrunz and SuSe. * Fix utmp/wtmp updating on 64-bit platforms. Patch by Bill Nottingham and Fedora. * Avoid unchecked return value from malloc() in utmpdump. Patch from Christian 'Dr. Disk' Hechelmann and Fedora. * Make sure to use execle and no execl when passing environment to the new process. Patch from RedHat. * Correct init to make sure the waiting status is preserved across re-exec. Patch from RedHat. * Correct init to avoid race condition when starting programs during boot. Patch from SuSe. * Allow 'telinit u' in runlevels 0 and 6. Patch from Thomas Hood. * Improve error message from init if fork() fail. Patch found in Suse. * Add support for SE Linux capability handling. Patch from Manoj Srivastava, adjusted to avoid aborting if SE policy was loaded in the initrd with patch from Bill Nottingham and Fedora. * Add -c option to pidof for only matching processes with the same process root. Ignore -c when not running as root. Patch from Thomas Woerner and Fedora. * Add usleep in killall5 after killing processes, to force the kernel to reschedule. Patch from SuSe. * Modify pidof to not print empty line if no pid was found. * Modify init and sulogin to fix emergency mode's tty, making sure ^C and ^Z work when booting with 'emergency' kernel option. Patch from Samuel Thibault. * Modify init to allow some time for failed opens to resolve themselves. Patch from Bill Nottingham and Fedora. * Modify init to shut down IDE, SCSI and SATA disks properly. Patches from Sebastian Reichelt, Werner Fink and SuSe. * Modify wall to use UT_LINESIZE from instead of hardcoded string lengths. Patch from SuSe. * Change wall to make halt include hostname in output. * Change killall to avoid killing init by mistake. Patch from SuSe. * Change killall5 to use the exit value to report if it found any processes to kill. Patch from Debian. * Add option -o opmitpid to killall5, to make it possible to skip some pids during shutdown. Based on patch from Colin Watson and Ubuntu. * Modify killall to work better with user space file system, by changing cwd to /proc when stopping and killing processes, and avoiding stat() when the value isn't used. Also, lock process pages in memory to avoid paging when user processes are stopped. Patch from Debian and Goswin von Brederlow with changes by Kel Modderman. * Change shutdown to only accept flags -H and -P with the -h flag, and document this requirement in the manual page. * Change reboot/halt to work properly when used as a login shell. Patch by Dale R. Worley and Fedora. * Let sulogin fall back to the staticly linked /bin/sash if both roots shell and /bin/sh fail to execute. * Wed Mar 3 2010 coolo@novell.com - provide sbin_init (so external packages can require either sysvinit or upstart) * Thu Feb 11 2010 coolo@novell.com - Split out tools not specific to System V into a tool subpackage to support alternative init implementations (fate#305690) * Mon Feb 8 2010 werner@suse.de - Add a manual page for utmpdump (bnc#576967) * Fri Jan 29 2010 werner@suse.de - Remove start-stop-daemon binary (bnc#568950) * Mon Dec 21 2009 werner@suse.de - Write pid file if /var is mounted rw (bnc#565620) * Tue Dec 8 2009 jengelh@medozas.de - enable parallel building * Mon Dec 7 2009 werner@suse.de - The same procedure for killproc.c its self (caused by bnc#559534) * Thu Dec 3 2009 werner@suse.de - Add missed line to startproc.c and also make manual page more clear how startproc works (caused by bnc#559534) * Sun Nov 15 2009 meissner@suse.de - refresh all patches with fuzz=0 * Mon Nov 2 2009 mmarek@suse.cz - fixed killproc-2.16.dif. * Thu Oct 29 2009 mmarek@suse.cz - killall5: do not kill /sbin/mdmon (fate#306823). * Wed Oct 28 2009 werner@suse.de - Avoid message on terminated process during reading its /proc files * Tue Sep 29 2009 werner@suse.de - Make killproc utils more stable in case that during read(2) a proc file the corresponding process has already terminated (bnc#542717) * Thu Aug 20 2009 werner@suse.de - Make a new showconsole version 1.10 * Add time stamps to blogger API (fate #305596) * Add newline before writing out blogger fifo content - Make a new startpar version 0.52 * Use blogd API (fate #305596) - Make a new killproc version 2.16 * Tue Jul 28 2009 werner@suse.de - Do not loop around in the forwarder of startpar * Tue Jun 30 2009 werner@suse.de - Add patch from Olaf Kirch to avoid using mutex locking for every character (from Moblin:Factory) * Mon Jun 29 2009 werner@suse.de - Start boot scripts with their symlinks name * Wed May 27 2009 werner@suse.de - Increase hash size for runtime linker of often used tools * Mon May 11 2009 werner@suse.de - Make it build * Thu May 7 2009 werner@suse.de - Reorder last patch in spec file * Wed May 6 2009 crrodriguez@suse.de - link /sbin/init dynamically, tested in 11.1, also all other distros work just fine this way. * Mon May 4 2009 werner@suse.de - Blogd: shorten minimal timeout at the end and hold all pages in physical RAM * Thu Apr 30 2009 werner@suse.de - For usleep(8) use nanosleep(2) instead of obsolete usleep(3) * Wed Apr 29 2009 werner@suse.de - mkill: Do not remove all pid's from list for one fuse process * Tue Apr 28 2009 werner@suse.de - Disable blogd on fastboot or quiet boot * Tue Apr 21 2009 werner@suse.de - Make initrd script for blogd depend on initrd script clock * Fri Mar 27 2009 werner@suse.de - Update to killproc 2.15 * New option -w for making startproc waiting on daemons parent process (bnc#489473, bnc#482096 comment#21 ff) * New option -W for making startproc waiting on files created by the daemon (bnc#482096 comment#24 ff) - Merge changes for preload code of startpar into one patch - nfs4pidof: avoid nfs code for process which are on shadow mounts points of NFS mounts * Wed Mar 25 2009 coolo@suse.de - exec one more time so that the preload part does not appear under the name of the init script in bootcharts * Wed Mar 25 2009 coolo@suse.de - fix the preload functionality in telling the parent process through SIGUSR1 and SIGUSR2 about preload's presence * Fri Mar 13 2009 werner@suse.de - mkill: avoid signaling process which are on shadow mounts points that is e.g. processes on /dev/pts while running mkill on /dev * Fri Mar 13 2009 werner@suse.de - Do not overwrite SUSE define * Fri Mar 13 2009 werner@suse.de - startpar: fix file descriptor leak (bnc#485112) * Wed Mar 11 2009 werner@suse.de - nfs4pidof: make sure not to stumble on short named mount points to avoid to terminate processes on wrong mount points * Tue Mar 10 2009 werner@suse.de - mkill: make sure not to stumble on short named mount points to avoid to terminate processes on wrong mount points (bnc#466484) * Mon Mar 9 2009 werner@suse.de - Add patch from Debian people to startpar and mode to version 0.53 * Thu Mar 5 2009 werner@suse.de - Update to killproc 2.14 to include most of our patches and to use openat(2), readlinkat(2), and opendirat(2) system calls. - Remove /dev/initctl from file list, do not create blogd pipe /dev/blogd (bnc#475580) * Fri Feb 20 2009 werner@suse.de - make sure that newline is printed out for last(1) (bnc#471386) * Thu Feb 12 2009 coolo@suse.de - support preload in its job in giving it the init scripts to preload - don't wait 0.3s when we need only 0.03 * Fri Feb 6 2009 ro@suse.de - fix build (move static int loop before first usage) * Tue Jan 27 2009 werner@suse.de - Do not terminate udevd with mkill(8) - Do not terminate udevd with killall5(8) - Avoid chrashing startpar due recursion caused by loops * Mon Jan 26 2009 werner@suse.de - Do not kill fuse user space processes with mkill(8) (bnc#466484) - Minimize fuse patch for killall5(8) by using readlinkat(2) * Wed Dec 10 2008 werner@suse.de - Mkill(8): add the option -0 for debugging and wait upto 3 seconds if a signal was send. * Fri Dec 5 2008 werner@suse.de - New tool in killproc source tree: mkill(8) for sending all processes making a active mount busy a signal, this avoid fuser. * Fri Dec 5 2008 werner@suse.de - New tool in killproc source tree: vhangup(8) for hanging up programs on terminal and sending SIGHUP, this avoids fuser. * Wed Nov 19 2008 werner@suse.de - Avoid error messages if blogd is closed premature * Tue Nov 18 2008 werner@suse.de - Mount devpts in initrd (bnc#442891) * Wed Oct 1 2008 werner@suse.de - Minimize fuse patch * Wed Oct 1 2008 ro@suse.de - fix fuse_kill patch so that it does not break pidof * Wed Oct 1 2008 werner@suse.de - Avoid stat(2) for all network based file systems (bnc#409011) * Wed Sep 17 2008 uli@suse.de - killall5: don't kill FUSE filesystems (Debian bug #476698) * Mon Sep 15 2008 ro@suse.de - add detection for OBS build environment * Wed Sep 3 2008 hare@suse.de - Call mkinitrd_setup during %%post and %%postun (bnc#413709) * Mon Aug 25 2008 prusnak@suse.cz - enabled SELinux support [Fate#303662] * Wed Aug 13 2008 werner@suse.de - Startpar: give posix_fadvise a try on boot scripts even if most of them are very small * Mon Aug 4 2008 werner@suse.de - Imake chroot detections to handle inodes and devices (bnc#408959) * Wed Jul 23 2008 hare@suse.de - Include mkinitrd scriptlets. * Fri Jul 18 2008 werner@suse.de - Make a new startpar version 0.52 * Should know about .depend.halt of new insserv * Fri Jul 4 2008 werner@suse.de - Fix a long standing bug in startpar introduced by implementing the make like behaviour (bnc#394926) - Make a new startpar version 0.51 * Fri Jun 13 2008 werner@suse.de - Let blogd detect changes of screen size, set new size pty pair, and if process group is not init send a SIGWINCH (bnc#259577) - In startpar use a signal handler on SIGWINCH (bnc#259577) * Wed Jun 11 2008 werner@suse.de - Startpar: try to reduce race if kbd change tty size (bnc#259577) * Tue May 20 2008 werner@suse.de - On halt flush not only unmanged disk but also removable devices like usb sticks (bnc#386487 related to bnc#229210) * Thu Mar 13 2008 werner@suse.de - Avoid race in blogd due sheduling priority which may raise EIO otherwise and do not free name of second tty needed for reconnect (bnc#370328) * Thu Jan 10 2008 werner@suse.de - Make it build with new glibc headers * Mon Jan 7 2008 werner@suse.de - Add cosmetic patch for startpar from the Debian people * Fri Nov 30 2007 werner@suse.de - New version 2.13 of killproc * Add support for more than one ignore pid file (bug #343227) * Close existing file descriptors on execve even if not a tty * Do not fork if startpar is used as start_daemon * Clean up the manual pages * Wed Oct 31 2007 werner@suse.de - startpar: make iorate a double * Wed Oct 31 2007 werner@suse.de - startproc: add option -T sec to finish waiting if parent exits * Wed Jun 20 2007 coolo@suse.de - startpar: mark started processes as running * Mon Jun 18 2007 werner@suse.de - Add importance for some scripts within startpar - Handle I/O blocked process very heavy in startpar - Add new user space program fsync(1) which use fsync(2) for updating the in-core state with the hard disk * Wed Jun 13 2007 werner@suse.de - bug #229210: avoid HDIO_DRIVE_CM ioctl for real SCSI disks. * Tue Jun 12 2007 werner@suse.de - bug #229210: check for the FLUSH CACHE EXT capability for large disks and use this capability if available. * Wed Jun 6 2007 werner@suse.de - For bug #229210: skip real SCSI disks, also flush disk cache for SATA and ATA disks. * Wed Jun 6 2007 werner@suse.de - More on bug #229210: do not shutdown allready managed disks * Tue Jun 5 2007 werner@suse.de - /sbin/halt: list and powerdown all disks even SATA/SCSI (bug #229210) * Fri May 11 2007 werner@suse.de - startpar: Try to start more processes even on high loaded systems - startpar: Detect endless loops on broken systems (no SIGCHILD) * Thu Apr 19 2007 werner@suse.de - Correct exit status of checkproc n case of using a pid file, thanks to Alessandro Soraruf * Wed Feb 14 2007 werner@suse.de - Remove swap supend patch because this is done now by powersave calling hal (bug #241204) * Thu Dec 14 2006 werner@suse.de - New killproc 2.12 with new option -N better handling for NFS based programs which is not to stat(2) the binary with -N - Make killall5 and pidof not to stat(2) binaries which are loacted on NFS partitions (#224563) * Tue Aug 22 2006 werner@suse.de - More on delayed utmp write: redo the write on telinit q (#148038) * Mon Aug 21 2006 werner@suse.de - Make installation work even within chroot and new kernel 2.6.18+ * Fri Aug 18 2006 werner@suse.de - Check if utmp not only exists but is writable (#199412, #148038) - Delay of utmp runlevel record if utmp is not writable (#148038) * Thu Aug 10 2006 werner@suse.de - Enable showconsole to provide the major and minor device number instead of the device file name. * Fri Jun 9 2006 werner@suse.de - killproc: Allow relocated binary paths and several hard links on binaries (bug #183251) * Tue May 16 2006 werner@suse.de - Reduce buffer usage for reading /proc/stat * Mon May 15 2006 werner@suse.de - Double buffer for /proc/stat for super large systems (#175385) * Fri May 12 2006 olh@suse.de - do not strip startpar and start-stop-daemon binaries * Thu Mar 16 2006 werner@suse.de - Do not rely on timeout after EINTR of select() * Mon Mar 6 2006 werner@suse.de - Handle a second system console from kernel command line (#155292) - Handle interrupted fifo writes even in shutdown * Wed Feb 8 2006 werner@suse.de - Close high file descriptors even for single jobs (bug #148668) * Tue Feb 7 2006 werner@suse.de - Add boot script for powerd (bug #147660) - Make powerd handling a pid file * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Wed Dec 21 2005 werner@suse.de - Remove not needed binaries on s390 * Mon Dec 5 2005 od@suse.de - Created/added patch for option -F (full time) (bug #136978) * Mon Dec 5 2005 od@suse.de - Added options -a, -d and -i to usage message * Tue Nov 8 2005 werner@suse.de - Move version of killproc to 2.11 * Allow to set a prefix and to disable usleep * Wed Nov 2 2005 dmueller@suse.de - don't build as root * Wed Nov 2 2005 werner@suse.de - Move version of killporc to 2.10 * Let checkproc really work like killproc if -k is specified. This is that if the pid file provided with option -p does not fit to a running process checkproc returns 7 for program is not running. * Wed Oct 19 2005 werner@suse.de - Update to sysvinit 2.86 * Tue Sep 20 2005 werner@suse.de - Make it build even on s390 * Thu Sep 15 2005 werner@suse.de - Bounce version of killporc to 2.09 - Add patch of Petter Reinholdtsen for startpar - Move version of startpar to 0.49 * Thu Sep 1 2005 mls@suse.de - do not leak stdout fd to splash process (bug #105999) * Thu Aug 25 2005 werner@suse.de - Apply the new LSB rule for optional pid files only (bug #105845) * Tue Aug 23 2005 werner@suse.de - Enable patch for killproc * Mon Aug 22 2005 werner@suse.de - Avoid zombie processes using startpar to get the next free process slot as fast as possible. - Make killproc be compliant with the newest LSB specs in case if the specified pid file does not exist that the daemon is not running (bug #105845). - Add the possibility of using pid numbers instead of a pid file. * Tue Jun 28 2005 schwab@suse.de - Fix typo. * Wed May 25 2005 werner@suse.de - Bounce showconsole to version 1.08 - Bounce killproc to version 2.08 - Avoid signess warning of gcc4 - Use sysv_log() instead of log() to avoid builtin log() of gcc4 * Mon May 23 2005 werner@suse.de - Make blogd work even with new root file system behaviour * Thu May 19 2005 werner@suse.de - More fixes for startpar: do not forget active jobs and correct exit status handling for the case of stopping jobs. * Mon Apr 25 2005 werner@suse.de - Showconsole: more names no belonging to terminals (bug #80304) * Tue Apr 5 2005 werner@suse.de - startpar: fix endless loop and race condition (bug #74256) * Sun Apr 3 2005 aj@suse.de - Further fixes for GCC4. * Thu Mar 24 2005 uli@suse.de - fixed to build with GCC4 * Wed Mar 9 2005 mls@suse.de - startpar: fix splash progress bar if "make" mode is enabled * Thu Jan 27 2005 coolo@suse.de - catch the case the clock moves back in time during boot * Tue Jan 18 2005 coolo@suse.de - adding patch by Takashi to sort the services before inserting them in the queue to allow predictable boot orders - adding patch by me to update the limit more often in case the load is too high (30s is just too long) * Mon Dec 13 2004 werner@suse.de - Update to killproc 2.07 which includes the new ignore file feature which works like a pid file but the pid found therein will be used to ignore all processes and session with that id. * Fri Dec 10 2004 werner@suse.de - Fix bottle neck in startpar calculation of number of parallel processes. Now the number of really active processes are used. * Wed Oct 13 2004 werner@suse.de - Do the real fix for the busy loop problem - Add a dynamic load balance based on the current process load and the current memory usage (bug #45191). * Mon Oct 4 2004 mls@suse.de - don't call /sbin/splash if proc was unmounted * Thu Sep 23 2004 mls@suse.de - call splash with $pos:$delta for animated progress bar - serialize calls to splash program * Mon Sep 20 2004 mls@suse.de - change bootsplash 'S' option handling to new bootsplash design - also set progressbar on the fly * Mon Sep 20 2004 werner@suse.de - Add some more information about the new make like scheme of startpar into its own manual page. * Thu Sep 9 2004 werner@suse.de - startproc: get wait status of already terminated parents on very fast systems with high load during boot. * Thu Sep 2 2004 werner@suse.de - Switch to Takashi's startpar version which is fully compatible to previous version. - Fix startpar to not to loop around if global timeout is expired. - Fix struct timeval asignment in startpar for big endian. - Add simple loadavg and memory check in startpar to make it compatible with UP system with less memory. * Tue Jun 1 2004 werner@suse.de - Remove any other workaround for hanging write * Tue Jun 1 2004 werner@suse.de - Remove ioctl workaround in blogd due it does not work * Tue Jun 1 2004 werner@suse.de - Change signal behaviour of blogd (try to fix bug #40474) - Add ioctl workaround to blogd for IA64 serial console - Do not overwrite environment of /sbin/init with comandline * Fri May 14 2004 werner@suse.de - Catch negative return values of safein which may fix bug #34840 * Thu Mar 25 2004 werner@suse.de - showconsole: * Do not trap into recursive symlink pointers (bug #36918) * Do not scan directories in /dev/ with no terminals * Mon Mar 22 2004 werner@suse.de - Fix cut&paste error * Mon Mar 22 2004 werner@suse.de - Support udev within blogd * Wed Mar 17 2004 werner@suse.de - Make clear descritption of -k option of checkproc and fix LSB behaviour of killproc (bug #35851) * Fri Mar 12 2004 werner@suse.de - Update of sysvinit 2.85 due better support of kernel 2.6 - Ensure that startpar close the allocated pty's (bug #35763) * Thu Mar 4 2004 werner@suse.de - Command back: use unsigned int for device numbers which works on both 32 and 64bit architectures and with old kernels * Wed Mar 3 2004 werner@suse.de - Use largest int type for device numbers * Fri Feb 27 2004 werner@suse.de - Be sure not to fail if startproc is called on fast systems * Thu Feb 26 2004 werner@suse.de - Add waiting routine on inode/dev compare of startproc binary and the forked off service (may fix bug #35008) * Mon Feb 23 2004 werner@suse.de - Wait on write if kernel returns with EAGAIN * Sun Feb 22 2004 schwab@suse.de - Fix use of uninitialized variable. * Tue Jan 13 2004 werner@suse.de - Update to showconsole 1.07 now with warn message if /var is ro - Fix bug #33798: remove group write flag from package docs * Sat Oct 18 2003 kukuk@suse.de - Move mingetty in extra package * Wed Oct 8 2003 werner@suse.de - Use struct ut_tv on 64 bit also for utmp and not only for wtmp * Wed Oct 8 2003 werner@suse.de - Redo the rename of barrier define to mem_barrier. * Tue Oct 7 2003 werner@suse.de - Use the not document struct ut_tv on 64 bit for utmp (bug #32086) - blogd: Small optimization at ring buffer handling * Tue Sep 30 2003 kukuk@suse.de - Rename barrier define to mem_barrier (to avoid clash with kernel headers) * Tue Sep 9 2003 werner@suse.de - Reenable fdatasync in blogd because linuxpthreads are fixed now * Mon Sep 8 2003 werner@suse.de - blogd: Be sure that _REENTRANT is defined for libconsole.c * Mon Sep 8 2003 werner@suse.de - blogd: Simply use locking information on broadcast lock, use thread join lock only if the writing thread is going to sleep. * Fri Sep 5 2003 werner@suse.de - Add simple program to check for serial lines on /dev/console to replace the wrong serial check during boot with newer kernels * Tue Sep 2 2003 werner@suse.de - Add workaround for blogd crash on x86_64 (bug #29750,29249,29545) * Be paranoid and use SysV signal handling to ensure restart * Be paranoid and check always the value of FILE pointer flog * Wed Aug 6 2003 werner@suse.de - Change detection of serial versus terminal lines (bug #28490) * Thu Jul 24 2003 uli@suse.de - fixed to build on s390x * Thu Jul 3 2003 werner@suse.de - Make flags transparent in startproc.c * Thu Jul 3 2003 werner@suse.de - Make killproc compliant with newest LSB spec (bug #24909) * Tue Jun 24 2003 werner@suse.de - Ditto * Mon Jun 23 2003 werner@suse.de - Make it build even on s390/s390x * Mon Jun 23 2003 kukuk@suse.de - Remove not packaged files from buildroot. * Mon Jun 23 2003 kukuk@suse.de - Remove compat link for old SPARC kernel * Tue Jun 17 2003 werner@suse.de - Use BuildRoot - Add startproc (0.42), thanks to Michael - showconsole: check for environment variable NOTIOCGDEV * Fri Jun 6 2003 mfabian@suse.de - also set the scroll region to the full window (ESC [ r) when - -noclear is not set. * Thu Jun 5 2003 mfabian@suse.de - if the option "--noclear" is not set, don't write a full reset because this leaves the unicode mode again if the terminal was in unicode mode and it also undos the ESC sequences in CONSOLE_MAGIC which are needed for some languages/console-fonts. Just put the cursor the home position (ESC [ H) and erase everything below the cursor (ESC [ J). * Thu May 15 2003 werner@suse.de - New showconsole/blogd version 1.06 * Threaded I/O stuff * Tue Apr 29 2003 werner@suse.de - New showconsole/blogd version 1.05 * Do not overwrite ring buffer memory in case of the fifo * Avoid not needed new line in case of carriage return. * Read at least 3 seconds at blogd close and flush all I/O * Mon Apr 14 2003 werner@suse.de - Fix script handling of killproc for several kernel versions (bug #25767) * Tue Mar 4 2003 werner@suse.de - Correct exit codes of killproc and update manual page about this * Fri Nov 22 2002 werner@suse.de - Be less memory consuming with showconsole 1.04 * Thu Nov 21 2002 werner@suse.de - New showconsole 1.03 * be able to scan dirs under /dev/ in fallback case * Thu Nov 14 2002 werner@suse.de - Update to mingetty 0.9.6s * Be sure to get controlling tty * Avoid overruns in string handling * Wed Nov 13 2002 werner@suse.de - Update to showconsole 1.02 (a cleanup version) - Update to mingetty 0.9.5s (s stand for SuSE) * New old option for avoiding vcs/vcsa hangup, terminal reset, and the usage of the glibc for updating wtmp. * Now the default terminal type can be set at compile time as an make option. * Wed Nov 13 2002 werner@suse.de - Update to killproc 2.05: * Change usleep which now calls sched_yield() for 0 microseconds * Tue Nov 12 2002 werner@suse.de - Update to killproc 2.04: * Better symlink handling * New dialog prompt handling for services * New chroot option. * Mon Nov 11 2002 ro@suse.de - fixed deprecated multiline string literal * Mon Nov 4 2002 werner@suse.de - Use usleep(1) in startproc/killproc/killall5 to force the kernel to run the scheduler. * Fri Aug 16 2002 werner@suse.de - Add PreReq (bug #18005) - Not only blogger and blogd but also set and showconsole together with their manual pages. * Thu Aug 8 2002 ihno@suse.de - adding blogger and blogd to s390/s390x * Fri Aug 2 2002 froh@suse.de - removed blogger from s390&s390x package lists - changed 'ifarch s390' and 'ifarch s390x' to 'ifarch s390 s390x' * Tue Jul 16 2002 werner@suse.de - Expand possible pid string length from 22 to 255 * Fri Jul 5 2002 werner@suse.de - Re-enable SIGINT in case or re-reading inittab (bug #16469) * Thu Jul 4 2002 werner@suse.de - Update to killproc 2.03 - Fix pointer for ioctl in libconsole of showconsole * Tue Apr 30 2002 werner@suse.de - Even if no blogd is used on S390x, the libblogger is required * Mon Apr 29 2002 werner@suse.de - Avoid trouble with stupid gcc 3.1 parser and inlined macros. * Thu Apr 25 2002 werner@suse.de - changes on mingetty (new version 0.9.4c) * Add support for other TTY devices than virtual console * Add nohost patch from Anders ?? * Mon Apr 22 2002 sf@suse.de - changed path to libcrypt in Makefile to also compile on lib64-archs * Tue Feb 12 2002 ro@suse.de - fix owner/group * Tue Jan 15 2002 werner@suse.de - Different usage messages for startproc and start_daemon (#12692) * Fri Dec 14 2001 werner@suse.de - Skip spinner of fsck/e2fsck in boot logging file * Mon Oct 1 2001 werner@suse.de - Build and install utmpdump * Mon Oct 1 2001 werner@suse.de - Move to SysVinit 2.82 and migrate our patches to 2.82 * Tue Sep 25 2001 werner@suse.de - Fix race on waiting on console I/O: just try open log file first * Thu Sep 20 2001 werner@suse.de - Ignore interrupted waitpid(2) calls * Wed Sep 19 2001 werner@suse.de - Add forgotten configuration of powerd * Wed Sep 19 2001 werner@suse.de - Update to powerd 2.0.2 because this version initialize the serial interface which seems to be required for kernel 2.4.x * Fri Sep 7 2001 werner@suse.de - startproc: close boot logging FIFO before executing a daemon. * Wed Sep 5 2001 werner@suse.de - blogd: really read the console a half second (bug #9899) * Tue Sep 4 2001 werner@suse.de - Add waitpid() loop nodead lock patch of Andrea - Add a check in the waitpid() loop to exit on failure * Thu Aug 30 2001 werner@suse.de - Make blogd/showconsole more robustly against errors - Add some fixes of bug #9898 * Fri Aug 24 2001 werner@suse.de - Activate 64 bit file handling interface (large file support) * Thu Aug 23 2001 werner@suse.de - Do not reset terminal device of /dev/console if on a serial line * Tue Jun 26 2001 cstein@suse.de - added a patch for the shutdown messages (see bug #8076) (also changed some other strings in shutdown.c) * Mon Jun 25 2001 bk@suse.de - back out read return 0 patch and don't build showconsole on s390x * Mon Jun 25 2001 bk@suse.de - don't include showconsole programs in filelist on s390x * Fri Jun 22 2001 bk@suse.de - blogd: when read return 0, this means EOF - don't loop in this case. * Tue Jun 12 2001 bk@suse.de - don't try to build showconsole on s390x(not supported by kernel) * Wed May 23 2001 werner@suse.de - Do not eat up argv and environ at boot logging in startproc * Wed May 23 2001 werner@suse.de - New killproc version 2.01: now we're able again to find deamons based on scripts. - Make fifo /dev/blog after installation if not exist. * Tue May 8 2001 werner@suse.de - Remove previous barrier() calls but use them on empty loops. * Wed May 2 2001 werner@suse.de - Call umask only once for all init processes (pid 1 and others) - Add some barrier() against officious compiler - Rename cpp macro TEST to SYSVINIT_TEST * Tue Apr 24 2001 werner@suse.de - Add default umask 022 at boot time * Tue Apr 17 2001 werner@suse.de - Few minor changes to killproc and co. * Thu Apr 12 2001 werner@suse.de - Disable boot logging and boot message redirection at common runlevels if TIOCGDEV is missed. * Wed Apr 11 2001 werner@suse.de - blogd: complain about missing ioctl TIOCGDEV at compile and run time * Wed Apr 4 2001 werner@suse.de - After fork reset signal handling of startproc to default for common signals * Thu Mar 22 2001 werner@suse.de - Startproc/killproc: handle by RPM moved and deleted exe links * Wed Mar 21 2001 werner@suse.de - Add patch for rlstat() of schowconsole (Andreas Schwab) * Mon Mar 19 2001 werner@suse.de - Startproc/killproc: handle deleted exe links * Fri Mar 9 2001 werner@suse.de - Add forgotten usleep to file list * Wed Feb 14 2001 werner@suse.de - Use sysvinit 2.78.4 - Spilt dif into several patches - Use static on the most functions of init.c - Integrate showconsole - bzip tar's * Mon Feb 5 2001 werner@suse.de - Update of killproc to version 2.00 * LSB conform exit values * Use boot logging provided by showconsole-0.9.tar.gz of aaa_base * New program usleep * Mon Jan 15 2001 werner@suse.de - Make strncmp of exe link and fullname working upto MAXNAMLEN * Tue Jan 9 2001 werner@suse.de - Use int instead of kdev_t in bootlogd.c * Wed Nov 29 2000 werner@suse.de - Make tty settings for sulogin working, and enable job control. - Workaround vor sigfholder (may kernel bug) * Tue Nov 28 2000 werner@suse.de - New and fixed killproc version 1.17 - Change some man pages of sysvinit to fit our new boot scheme - Enable tty settings for sulogin, should be checked on serial console (BTW: SHOULD we DO that?). * Thu Nov 16 2000 ro@suse.de - fixed install for killproc * Wed Nov 15 2000 werner@suse.de - New killproc version (1.16) * base name allowed * protected the parent of the parent * provide pidofproc (a link to checkproc for a verbose checkproc) * provide stat_daemon (a link to statproc) * Mon Oct 23 2000 werner@suse.de - changes on mingetty (new version 0.9.4b) * On ro files systems chmod/chown shouldn't force an exit. * Therefore we need a warn message. * Due to the lack of a revoke system call we signal all file holders including the mmaping processes. * Wed Jun 28 2000 bk@suse.de - enabled reboot on s390 * Sun Jun 25 2000 bk@suse.de - removed some not needed files on s390 * Tue May 30 2000 werner@suse.de - Correct path of powerstatus (/var/run/powerstatus) of powerd * Wed May 24 2000 garloff@suse.de - Added minimal docu for swsusp. * Tue May 23 2000 werner@suse.de - New killproc version 1.15 reading exe link for kernel 2.2 * Wed May 17 2000 garloff@suse.de - Added software-suspend support to init. - login option of mingetty limits logname to 42 chars. * Wed May 10 2000 garloff@suse.de - Working patch for mingetty to support devfs. * Wed May 10 2000 garloff@suse.de - Preliminary patch for devfs. * Wed May 10 2000 garloff@suse.de - Make it more secure by passing the logname as one arg and by checking for a leading '-'. The manpage tells the sysadmin about possible risks now. * Tue May 9 2000 garloff@suse.de - Added new options --login and --logopts to mingetty, so you may create an inittab entry using ssh for login or similar * Tue Mar 7 2000 werner@suse.de - Ignore SIGTERM for syslogd because this daemon use that signal to control the parent process. - Make read/write of /etc/ioctrl.save EINTR safe - Use defined special character given from - No flow control (-ixon), ignore break (ignbrk), and make nl/cr more usable (sane). - Set the terminal line immediately * Mon Mar 6 2000 werner@suse.de - Avoid script handling for kernel threads * Sun Mar 5 2000 werner@suse.de - If open fails -1 is returned (close bug #2200) * Fri Mar 3 2000 kukuk@suse.de - Create /usr/bin/shutdown link for UltraSPARC kernel * Mon Feb 21 2000 werner@suse.de - New version of killproc (1.1.4): fix of script handling - New version of sysvinit (2.78) with some bug fixes * Thu Dec 16 1999 werner@suse.de - New version of killproc 1.13 * Bug fix in handling hard links for daemons using pid files * Bug fix: PROC pointers should not be volatile * Shorten nonsleeps for none daemon programs * Tue Nov 9 1999 werner@suse.de - Avoid trouble with hard links of binaries * Sun Nov 7 1999 kukuk@suse.de - mingetty: Add 1900 to tm_year, it contains the years since 1900. * Thu Nov 4 1999 werner@suse.de - New killproc 1.12 * Fix option -q of startproc * Fix Bug in wait4 handling of startproc * Fix script detection: do not handle startproc, killproc, and checkproc as script interpreters * Tue Nov 2 1999 werner@suse.de - Add a patch from Marius * Fri Oct 29 1999 werner@suse.de - powerd should tell init if status is OK again * Thu Sep 30 1999 werner@suse.de - New killproc version 1.11 * Some small speedups * Minor spell correction in the manual pages * Allow login onto tty's - Use RPM_OPT_FLAGS throughout * Mon Sep 13 1999 bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Tue Sep 7 1999 werner@suse.de - Enable mingetty resetting the terminal * Fri Aug 6 1999 werner@suse.de - New killproc-1.10 * startproc which is able to sleep * better zombie handling - killproc doesn't ignore zombies - checkproc ignores zombies without `-z' by default - startproc checks zombie state of child while sleeping * Tue Jul 6 1999 werner@suse.de - Fix pts problem of shutdown (dowall.c) * Thu Jun 24 1999 werner@suse.de - Add lastb and its manual page * Wed Jun 23 1999 werner@suse.de - Integrate newest mingetty patch of jurix - Update killproc version 1.9 * be more sufficient in setting user and/or group id - Update to sysvinit 2.76 * Integrate newest sysvinit patch of jurix into our patch. The command last is part of sysvinit. * Tue Jun 22 1999 werner@suse.de - Update to new killproc version 1.8 * startproc knows about setsid to set up a new process session for the new task (option -s) * startproc can change the effective uid and/or gid for a process (option -u uid and/or -g gid) - Make spec file more handy for newer versions. * Mon May 3 1999 werner@suse.de - Enable killproc-1.7.dif in specs file * Mon May 3 1999 werner@suse.de - killproc shouldn't complain a disappeared job/thread * Mon Apr 19 1999 werner@suse.de - mingetty: reset not only /dev/tty but /dev/vcs and /dev/vcsa also * Fri Feb 26 1999 werner@suse.de - New killproc vesion 1.7 * read of /proc/ is secure against EINTR * handle script names ala `bash -x /usr/bin/myscript -y' * Mon Jan 18 1999 werner@suse.de - Make killproc more smart, e.g. faster - Make startproc alpah compatible * Thu Dec 10 1998 ro@suse.de - added last manpage - link init static * Tue Dec 8 1998 ro@suse.de - use last from sysvinit-2.75 * Mon Nov 30 1998 werner@suse.de - Close some races, unknowns, and difficulties in killproc tools * Tue Nov 24 1998 werner@suse.de - Don't blame boot script with killproc having same name as the controlled daemon ... new kernel doesn't need this. * Mon Nov 16 1998 ro@suse.de - install man-page for powerd * Fri Nov 13 1998 werner@suse.de - Integrate powerd-2.0 for a replacment of the obsolate old one * Mon Nov 2 1998 ro@suse.de - update to killproc-1.6 * Thu Oct 22 1998 ro@suse.de - update to killproc-1.5 (take 2) * Thu Oct 8 1998 ro@suse.de - killproc: libinit.c output of "can't open pid file" only "#if DEBUG" * Tue Oct 6 1998 ro@suse.de - updated killproc to get rid of a memleak * Mon Oct 5 1998 ro@suse.de - new version: killproc-1.4 * Fri Jul 3 1998 werner@suse.de - added killproc-1.2, a replacement of the old killproc * Wed May 6 1998 florian@suse.de - added an option to killproc to also kill process groups: killproc [-SIG] [-g] prog * Tue Nov 4 1997 mantel@suse.de - creation of dev/initctl fixed * Thu Oct 23 1997 ro@suse.de - ready for autobuild