OpenRC support thread, 2d Edition
|
View unanswered posts
View posts from last 24 hours
Goto page Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
|
View previous topic :: View next topic |
Author |
Message |
mungo_k n00b
Joined: 01 Jun 2009 Posts: 42
|
Posted: Thu Oct 13, 2011 8:08 am Post subject: |
|
|
A big problem.
I have an old proxy server with gentoo. After update to openrc there was no problem.
Now I had to add some of services to default runlevel. I added clamav (rc-update add clamd default). After reboot it doesn't run! No messages, it just skipped. Manual run works (/etc/init.d/clamd start).
I tried to remove and after add again this, no effect.
Any help? |
|
Back to top |
|
|
zeek Guru
Joined: 16 Nov 2002 Posts: 480 Location: Bantayan Island
|
Posted: Wed Oct 26, 2011 4:17 pm Post subject: Needlessly restarting services? |
|
|
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: | # /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
|
|
|
Back to top |
|
|
ManDay Apprentice
Joined: 22 Jan 2008 Posts: 247
|
Posted: Wed Oct 26, 2011 8:27 pm Post subject: |
|
|
Is there any comprehensive documentation with OpenRC? It appears that the best it gets are some sporadic comments in the configuration files. What about documentation of all the things in /etc/conf.d/ such as ./modules and how all the other things? A documentation of the init scripts, perhaps? Is OpenRC practically not documented? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10689 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Oct 26, 2011 8:38 pm Post subject: |
|
|
Except for these 80-some-odd documents, Code: | $ 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 | no, very little documentation at all.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
ManDay Apprentice
Joined: 22 Jan 2008 Posts: 247
|
Posted: Wed Oct 26, 2011 8:46 pm Post subject: |
|
|
Oh :) Looks like the generic documentation for the OpenRC framework, though - are the individual components (such as modules) also documented somewhere? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10689 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Nov 01, 2011 9:22 pm Post subject: |
|
|
Alas, I don't think there is a "What You Can Do with Baselayout" tutorial document all in one place. Some of it is in the Baselayout and OpenRC Migration Guide but this is by no means a complete HOWTO on the capabilities.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
fremda n00b
Joined: 05 Dec 2011 Posts: 9
|
Posted: Wed Dec 07, 2011 9:04 am Post subject: |
|
|
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. |
|
Back to top |
|
|
optiluca Guru
Joined: 16 Jan 2006 Posts: 551 Location: Rivergaro, Italy
|
Posted: Wed Dec 07, 2011 10:30 am Post subject: |
|
|
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. |
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. _________________ # "Hmm, sounds like your system froze up."
# "I don't know why. It's about 80 degrees in here!"
http://www.rinkworks.com/stupid/cs_mincing.shtml |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6780
|
Posted: Wed Dec 07, 2011 5:17 pm Post subject: |
|
|
fremda wrote: | After a certain world upgrade several months ago i can't see console boot log on tty1. |
This is not related with openrc but only with agetty: Change the corresponding inittab line to
/etc/inittab wrote: | c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux |
|
|
Back to top |
|
|
fremda n00b
Joined: 05 Dec 2011 Posts: 9
|
Posted: Wed Dec 07, 2011 5:52 pm Post subject: |
|
|
mv wrote: | This is not related with openrc |
My bad. But thanks for help! |
|
Back to top |
|
|
eohrnberger Apprentice
Joined: 09 Dec 2004 Posts: 250
|
Posted: Sun Jan 15, 2012 12:46 pm Post subject: migrated to OpenRC & baselayout, missing /dev/sd? nodes? |
|
|
Hi all. Seems I'm coming a little late to the OpenRC party, oh well.
Just got done migrating to the new OpenRC & baselayout and what an improvement. The system boots so much faster.
Got through all the modules things, network things, etc. All seems to be working with one little issue.
I have a number of hard disks in this system, about 1/3 EIDE and the rest SATA, but somehow or another, the appropriate /dev/sd device nodes (yes, I've migrated to LibATA long ago), are missing. Mind you that the system is using all the hard disks, so it must be finding them somewhere. EVMS volumes are all intact.
These missing /dev/sd? nodes really messes up smartd, which I'm using to monitor these hard disks health.
Here are the related smartd log lines:
Jan 15 07:51:30 storage smartd[27664]: Device: /dev/sda, open() failed: No such device
Jan 15 07:51:30 storage smartd[27664]: Device: /dev/sdb, open() failed: No such device
Jan 15 07:51:30 storage smartd[27664]: Device: /dev/sdc, open() failed: No such device
Jan 15 07:51:30 storage smartd[27664]: Device: /dev/sdd, open() failed: No such device
Jan 15 07:51:30 storage smartd[27664]: Device: /dev/sde, open() failed: No such device
Jan 15 07:51:30 storage smartd[27664]: Device: /dev/sdf, open() failed: No such device
The drives after /dev/sdf are all there, and smartd can monitor those.
The most interesting thing is that EVMS is finding the /dev/sda - /dev/sdf nodes just fine.
Any pointers where I can start to investigate and make udev put these nodes back in dev where I need them?
I search around a bit, but if there's another thread or post I can start with, just point me there.
Thanks in advance. |
|
Back to top |
|
|
quanta n00b
Joined: 11 Sep 2010 Posts: 61
|
Posted: Sun Feb 26, 2012 7:05 am Post subject: Re: shell_var |
|
|
deurk wrote: | Can anyone find a reason for this to be displayed when I restart a service?
Code: | * Caching service dependencies ... /lib64/rc/sh/rc-functions.sh: line 91: shell_var: command not found [ ok ] |
|
Did you try to open this file and replace it with the absolute path, something like this:
Code: | local _rc_svcname=$(/lib/rc/bin/shell_var "$RC_SVCNAME") _deptype= _depends= |
(`lib64` in your case) |
|
Back to top |
|
|
azp Guru
Joined: 16 Nov 2003 Posts: 456 Location: Sweden
|
Posted: Wed Feb 29, 2012 12:35 pm Post subject: Re: shell_var |
|
|
azp wrote: | Yuu wrote: | deurk wrote: | Can anyone find a reason for this to be displayed when I restart a service?
Code: | * Caching service dependencies ... /lib64/rc/sh/rc-functions.sh: line 91: shell_var: command not found [ ok ] |
|
Sometimes, when I restart a service, I have the same issue and I didn't find any solution.
---
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 :] |
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.
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: | 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 |
|
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 {}? _________________ Weeks of coding can save you hours of planning. |
|
Back to top |
|
|
Carnildo Guru
Joined: 17 Jun 2004 Posts: 595
|
Posted: Wed Feb 29, 2012 9:40 pm Post subject: Re: Needlessly restarting services? |
|
|
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? |
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. |
|
Back to top |
|
|
Bein n00b
Joined: 19 Sep 2011 Posts: 2
|
Posted: Wed Feb 29, 2012 11:39 pm Post subject: openrc compile error |
|
|
I try to emerge openrc after baselayout-2, but I get a compile error complaining about a missing "einfo.h":
Code: |
[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
|
Here is my emerge --info:
Code: |
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
|
What package is einfo.h from? After googling it seems it is from baselayout, (which I emerged just fine). Any ideas what could be going on here? |
|
Back to top |
|
|
milkteafuzz n00b
Joined: 10 Sep 2011 Posts: 2 Location: Austin, TX
|
Posted: Sun Apr 08, 2012 10:56 pm Post subject: |
|
|
I ran into this same issue today, upgrading a Gentoo install from 2008 (it was the only gentoo image that my vps provider had at the time - last I heard they were working on a new image but oh well).
einfo.h and friends are part of openrc, but that's exactly what you're compiling, is it not? I was able to resolve this by compiling an older version of openrc first and then upgrading to the latest version.
Code: | vps19363413 ~ # emerge -av --oneshot =sys-apps/openrc-0.9.8.4
vps19363413 ~ # emerge -av --oneshot openrc |
_________________ -Musee |
|
Back to top |
|
|
weedy Apprentice
Joined: 24 Jun 2005 Posts: 247
|
Posted: Mon Apr 09, 2012 1:46 pm Post subject: |
|
|
I'm using the parallel option in openrc. Is there anyway to block parallel inside a init script?
I have a slow script that runs on shutdown but some times the root FS is still unmounted before it finishes. I thought depend localmount was enough be it looks like it isn't. Any ideas? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|