Hi, seems my system got broken after and upgrade from sys-apps/openrc-0.42.1-r1 to sys-apps/openrc-0.43.5 as I have receive now: # /etc/init.d/s6-svscan start * Creating s6 scan directory * Starting s6-svscan ... * start-stop-daemon: /bin/s6-svscan does not exist * Failed to start s6-svscan [ !! ] * ERROR: s6-svscan failed to start # # equery belongs s6-svscan /etc/init.d/s6-svscan start * Searching for s6-svscan ... sys-apps/openrc-0.43.5 (/etc/init.d/s6-svscan) # I do not see any ipv6-related USE flag for openrc. There used to be a svscan script only. Due to the issues I started a partial attempt to migrate away to systemd although I do not see a reason doing so. any suggestion what to reinstall and how? At the moment I have: # emerge --info Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/no-multilib/systemd, gcc-10.3.0, glibc-2.33-r1, 5.4.109 x86_64) ================================================================= System uname: Linux-5.4.109-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_0_@_2.30GHz-with-glibc2.33 KiB Mem: 2043076 total, 834988 free KiB Swap: 1023996 total, 894204 free Timestamp of repository gentoo: Fri, 08 Oct 2021 09:30:01 +0000 Head commit of repository gentoo: aaf9d3c151be9697fe122f229ee62c70c457017f sh bash 4.4_p23-r2 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 app-shells/bash: 4.4_p23-r1::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 3.7.10::gentoo, 3.8.8::gentoo, 3.9.6_p2::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.43.5::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.12.6-r2::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.2-r1::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/gcc: 9.2.0-r2::gentoo, 9.3.0-r1::gentoo, 10.3.0-r2::gentoo sys-devel/gcc-config: 2.3.2::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: x-portage location: /usr/local/portage masters: gentoo priority: 0 science location: /var/lib/layman/science masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x intel-ucode unRAR linux-firmware freedist arj" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=x86-64" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=x86-64" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LC_ALL="en_US" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US en_GB cs cz" MAKEOPTS="-j1" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/tmp" USE="X amd64 apache apache2 berkdb blake2 bzip2 cairo cgi cli cracklib crypt cryptlib dbus device-mapper dhcp dri emboss fontconfig fortran gbm gd gdbm geoip gpm iconv innodb ipv6 java jce jpeg jpg keymap ladspa lapack lcms libglvnd libnotify libtirpc lz4 lzma lzo mmx mysql mysqli ncurses nfs nls nptl nptlonly openssl pam pcre pdf perl php png python readline resolvconf seccomp server session spf split-usr sqlite sse sse2 ssl sslv2 sslv3 suexec svg syslog systemd tcpd threads tiff truetype udev unicode usb vhosts vim-syntax x11 xattr xml zlib" ABI_X86="64" ADA_TARGET="gnat_2019" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias authz_host authz_user auth_basic auth_digest authn_core authz_core autoindex cgi cgid deflate dir env expires filter headers ident include info imagemap mem_cache mime mime_magic negotiation remoteip setenvif socache_shmcb status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic unixd session session_cookie session_crypto xml2enc" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php-7.3" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
A plausible explanation would be:- 1) you once had s6 installed 2) you uninstalled s6, whether directly or indirectly In that case, you would be responsible for the problem. The s6-svscan runscript is part of OpenRC. If you want for the s6-svscan binary to always be available, emerge s6 explicitly. Not only should doing so bring it back, it should also register the package in your world file, thus protecting it against --depclean operations. Alternatively, don't install it but, at the same time, don't expect to be able to use the s6-svscan runscript. That said, one could argue that it's confusing for OpenRC to own the runscript without taking responsibility for fulfilling its runtime requirements. Did you have a reason for installing s6 in the first place? I'm curious to know because confusing IPv6 with s6 implies a misunderstanding.
Hi, thank you for your aswers. First of all, I do not know what s6 is. But looking into emerge.log for sys-apps/s6 I couldn't find it although the file starts on Apr 8 2019. The server instance is up since maybe 2015. I do remeber having /etc/init.d/svscan . Is it possible that the last upgraded converted the file svscan to s6-svscan? I think the svscan was there as I used to have qmail+dovecot on the system and later moved to postfix+dovecot because qmail was quite unmaintained. I think the manuals for qmail instructed me to do so. So how can I get rid of this?
(In reply to Martin Mokrejš from comment #2) > Hi, > thank you for your aswers. First of all, I do not know what s6 is. But > looking into emerge.log for sys-apps/s6 I couldn't find it although the file > starts on Apr 8 2019. The server instance is up since maybe 2015. > > I do remeber having /etc/init.d/svscan . Is it possible that the last > upgraded converted the file svscan to s6-svscan? No. The svscan runscript is provided by daemontools, which is a service supervision suite by Daniel J. Bernstein - the same man that wrote qmail. While s6 is inspired by some of the design principles of daemontools, it is a separate project. > > I think the svscan was there as I used to have qmail+dovecot on the system > and later moved to postfix+dovecot because qmail was quite unmaintained. I > think the manuals for qmail instructed me to do so. For DJB to advocate the use of daemontools seems likely, yes. > > So how can I get rid of this? If you have no further use for daemontools and it's still installed then uninstall it. Next, run `find /etc/runlevels -name "*svscan*"`. If the service shows up as being part of any runlevel, remove it. For instance, if shows up in the default runlevel, run `rc-update del svscan default`. That's all.
Also, I'll propose a patch that renders the error message a little less confusing for those who try to use s6-svscan without s6 being installed. That way, perhaps something useful can come of this report.
Created attachment 744657 [details, diff] 0001-init.d-s6-svscan.in-Check-for-command-existence-in-s.patch
Hi, thank you for you help. So I managed to migrate to systemd from openrc. I needed to to power down and power up because reboot command did not understand -k argument. I spent half a day with the migration with the server out of service unless I got access to the console and power switch. Just to learn systemd does not even convert the openrc config files to its own nor it runs dhcp on the network interface. Openvpn You were right guessing I was likely speaking of daemontools I do not remember all the tools names. I don't think I ever had s6 installed and I only remeber svscan, s6-svscan was a new thing to me now. Thanks for the patch, seems the right way to go.
This is fixed in 0.44.7.