Code: Select all
# /etc/init.d/net.eth1 restart
* Caching service dependencies ...
* Stopping syslog-ng ...
* Stopping sshd ...
* Stopping nrpe ...
* Unmounting network filesystems ...
* Bringing down interface eth1
* Bringing up interface eth1
...
# rc-status
Runlevel: default
net.eth0
net.eth1
netmount
nrpe
syslog-ng
ntpd
sshd
udev-postmount
vixie-cron
local
Dynamic Runlevel: hotplugged
net.eth0
net.eth1
Dynamic Runlevel: needed
udev-mount
Dynamic Runlevel: manual

Code: Select all
$ sudo equery files openrc | grep '/usr/share/man'
/usr/share/man
/usr/share/man/man3
/usr/share/man/man3/ebegin.3.bz2
/usr/share/man/man3/ebeginn.3.bz2
/usr/share/man/man3/ebeginv.3.bz2
/usr/share/man/man3/ebeginvn.3.bz2
/usr/share/man/man3/ebracket.3.bz2
/usr/share/man/man3/eend.3.bz2
/usr/share/man/man3/eendv.3.bz2
/usr/share/man/man3/eerror.3.bz2
/usr/share/man/man3/eerrorn.3.bz2
/usr/share/man/man3/eerrorx.3.bz2
/usr/share/man/man3/eindent.3.bz2
/usr/share/man/man3/eindentv.3.bz2
/usr/share/man/man3/einfo.3.bz2
/usr/share/man/man3/einfon.3.bz2
/usr/share/man/man3/einfov.3.bz2
/usr/share/man/man3/einfovn.3.bz2
/usr/share/man/man3/eoutdent.3.bz2
/usr/share/man/man3/eoutdentv.3.bz2
/usr/share/man/man3/eprefix.3.bz2
/usr/share/man/man3/ewarn.3.bz2
/usr/share/man/man3/ewarnn.3.bz2
/usr/share/man/man3/ewarnv.3.bz2
/usr/share/man/man3/ewarnvn.3.bz2
/usr/share/man/man3/ewarnx.3.bz2
/usr/share/man/man3/ewend.3.bz2
/usr/share/man/man3/ewendv.3.bz2
/usr/share/man/man3/rc_config.3.bz2
/usr/share/man/man3/rc_config_list.3.bz2
/usr/share/man/man3/rc_config_load.3.bz2
/usr/share/man/man3/rc_config_value.3.bz2
/usr/share/man/man3/rc_deptree.3.bz2
/usr/share/man/man3/rc_deptree_depend.3.bz2
/usr/share/man/man3/rc_deptree_depends.3.bz2
/usr/share/man/man3/rc_deptree_free.3.bz2
/usr/share/man/man3/rc_deptree_load.3.bz2
/usr/share/man/man3/rc_deptree_order.3.bz2
/usr/share/man/man3/rc_deptree_update.3.bz2
/usr/share/man/man3/rc_deptree_update_needed.3.bz2
/usr/share/man/man3/rc_find_pids.3.bz2
/usr/share/man/man3/rc_plugin_hook.3.bz2
/usr/share/man/man3/rc_runlevel.3.bz2
/usr/share/man/man3/rc_runlevel_exists.3.bz2
/usr/share/man/man3/rc_runlevel_get.3.bz2
/usr/share/man/man3/rc_runlevel_list.3.bz2
/usr/share/man/man3/rc_runlevel_set.3.bz2
/usr/share/man/man3/rc_runlevel_starting.3.bz2
/usr/share/man/man3/rc_runlevel_stopping.3.bz2
/usr/share/man/man3/rc_service.3.bz2
/usr/share/man/man3/rc_service_add.3.bz2
/usr/share/man/man3/rc_service_daemon_set.3.bz2
/usr/share/man/man3/rc_service_daemons_crashed.3.bz2
/usr/share/man/man3/rc_service_delete.3.bz2
/usr/share/man/man3/rc_service_description.3.bz2
/usr/share/man/man3/rc_service_exists.3.bz2
/usr/share/man/man3/rc_service_extra_commands.3.bz2
/usr/share/man/man3/rc_service_in_runlevel.3.bz2
/usr/share/man/man3/rc_service_mark.3.bz2
/usr/share/man/man3/rc_service_plugable.3.bz2
/usr/share/man/man3/rc_service_resolve.3.bz2
/usr/share/man/man3/rc_service_schedule_clear.3.bz2
/usr/share/man/man3/rc_service_schedule_start.3.bz2
/usr/share/man/man3/rc_service_started_daemon.3.bz2
/usr/share/man/man3/rc_service_state.3.bz2
/usr/share/man/man3/rc_service_value_get.3.bz2
/usr/share/man/man3/rc_service_value_set.3.bz2
/usr/share/man/man3/rc_services_in_runlevel.3.bz2
/usr/share/man/man3/rc_services_in_state.3.bz2
/usr/share/man/man3/rc_services_scheduled.3.bz2
/usr/share/man/man3/rc_services_scheduled_by.3.bz2
/usr/share/man/man3/rc_stringlist.3.bz2
/usr/share/man/man3/rc_stringlist_add.3.bz2
/usr/share/man/man3/rc_stringlist_addu.3.bz2
/usr/share/man/man3/rc_stringlist_delete.3.bz2
/usr/share/man/man3/rc_stringlist_free.3.bz2
/usr/share/man/man3/rc_stringlist_new.3.bz2
/usr/share/man/man3/rc_stringlist_sort.3.bz2
/usr/share/man/man3/rc_yesno.3.bz2
/usr/share/man/man8
/usr/share/man/man8/rc-service.8.bz2
/usr/share/man/man8/rc-status.8.bz2
/usr/share/man/man8/rc-update.8.bz2
/usr/share/man/man8/rc.8.bz2
/usr/share/man/man8/runscript.8.bz2
/usr/share/man/man8/start-stop-daemon.8.bz2
I remember reading about this in another thread a few months back, I think that there is no way of bringing back old behaviour by just changing some option in a config file, though I may be wrong. There are posts about this in the forums, anyway.fremda wrote:After a certain world upgrade several months ago i can't see console boot log on tty1. It's there, but login screen clears all log. How to stop this? I want welcome message after boot log.

Did you try to open this file and replace it with the absolute path, something like this:deurk wrote:Can anyone find a reason for this to be displayed when I restart a service?
Code: Select all
* Caching service dependencies ... /lib64/rc/sh/rc-functions.sh: line 91: shell_var: command not found [ ok ]
Code: Select all
local _rc_svcname=$(/lib/rc/bin/shell_var "$RC_SVCNAME") _deptype= _depends=I asked the same question on the previous page, and also supplied a solution. Shouldn't the rc-functions.sh be patched to always have the variable names within {}?azp wrote:How did you figure out which script was causing the issue? I'll try to hunt down the script that is causing the same issue for me.Yuu wrote:Sometimes, when I restart a service, I have the same issue and I didn't find any solution.deurk wrote:Can anyone find a reason for this to be displayed when I restart a service?Code: Select all
* Caching service dependencies ... /lib64/rc/sh/rc-functions.sh: line 91: shell_var: command not found [ ok ]
---
Edit: found it.
I had a really old open-iscsi initscript in /etc/init.d/; and because I don't have sys-block/open-iscsi installed. So, I just removed this file and now it works flawlessly. Thus, rc-update -u is now running without complaints :]
I edited some scripts in /etc/init.d/ that had the shell_variable in them, but that didn't help. So I edited the rc-functions.sh instead, and put the variable after "shell_variable" inside {} (shouldn't you have it as a rule and always do that?), and now the problem seems fixed:
Code: Select all
90 depend -91 local _rc_svcname=$(shell_var "$RC_SVCNAME") _deptype= _depends= 92 90 depend +91 local _rc_svcname=$(shell_var "${RC_SVCNAME}") _deptype= _depends= 92
Is the old behavior the right thing to do? If you've got a service (say, BIND) listening on one specific interface and you restart that interface to change its IP address, restarting the service is the only reliable way to get it to listen on the new address.zeek wrote:A difference I noticed with OpenRC is that it restarts a lot of services when restarting a network interface. Is there any way to get the old behavior?
Code: Select all
[ebuild N ] sys-apps/openrc-0.9.9.2 USE="ncurses pam unicode -debug (-selinux) -static-libs" 0 k
.........
x86_64-pc-linux-gnu-gcc -I../includes -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -MM librc.c librc-daemon.c librc-depend.c librc-misc.c librc-stringlist.c > .depend
librc-misc.c:32:19: error: einfo.h: No such file or directory
Code: Select all
emerge --info =sys-apps/openrc-0.9.9.2
Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2, 3.2.0-gentoo-r1 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-3.2.0-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6570_@_2.10GHz-with-gentoo-2.1
Timestamp of tree: Wed, 29 Feb 2012 22:15:01 +0000
app-shells/bash: 4.0_p24
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.4.4-r13, 2.5.4-r3, 2.6.4, 2.7.2-r2, 3.1.3
dev-util/cmake: 2.8.5-r2
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.5, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils: 2.21.1
sys-devel/gcc: 4.1.2, 4.4.4-r1, 4.5.2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82
sys-kernel/linux-headers: 2.6.34 (virtual/os-headers)
sys-libs/glibc: 2.11.2
Repositories: gentoo interactive-fiction progress games
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/interactive-fiction /var/lib/layman/progress /var/lib/layman/games"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi aim alsa amd64 ao apm apng berkdb bzip2 cairo cdparanoia cdr cli cracklib cups cxx dbus device-mapper dio divx dri dvd dvdr emerald emul-linux-x86 encode examples extras faad2 ffmpeg firefox fontconfig foomaticdb fortran ftp gcj gd gdbm gif glitz glut gnutls gpg gpm graphics iconv icu imap imlib ipv6 jadetex java javascript joystick jpeg kpathsea lapack laptop madwifi mencoder midi mikmod mmap mmx modules motif mozilla mp3 mpeg mudflap multilib nas ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf perl php png policykit pppd python qt4 quicktime readline science sdl session slp smtp sockets sox sqlite sse sse2 ssl startup-notification svg symlink sysfs tads3compiler tcpd tetex threads tiff tk truetype truetype-fonts unicode vorbis win64 xcb xine xml xml2 xmms xorg xv xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XFCE_PLUGINS="brightness menu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPT

Code: Select all
vps19363413 ~ # emerge -av --oneshot =sys-apps/openrc-0.9.8.4
vps19363413 ~ # emerge -av --oneshot openrc