Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409787 - sys-apps/openrc-0.9.9.3: "rc-status -a" doesn't display all started services
Summary: sys-apps/openrc-0.9.9.3: "rc-status -a" doesn't display all started services
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 439098
  Show dependency tree
 
Reported: 2012-03-26 17:56 UTC by parafin
Modified: 2013-07-16 19:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---
qnikst: Bugday-


Attachments
patch that fixes situation (rc-status.patch,697 bytes, patch)
2013-07-14 07:03 UTC, Alexander Vershilov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description parafin 2012-03-26 17:56:31 UTC
After rebooting my system, I noticed that dhcpcd service got automatically (it's not in any runlevel) started, probably because it provides net service. I expected to find it in "Dynamic Runlevel: needed" section of "rc-status -a" output, but dhcpcd wasn't in it at all. Anyway, some command outputs speak better:
darkhorse ~ # /etc/init.d/dhcpcd status
 * status: started
darkhorse ~ # rc-status -a
Runlevel: sysinit
 udev-mount     [  started  ]
 sysfs          [  started  ]
 dmesg          [  started  ]
 udev           [  started  ]
 devfs          [  started  ]
Runlevel: shutdown
 killprocs      [  stopped  ]
 savecache      [  stopped  ]
 mount-ro       [  stopped  ]
Runlevel: default
 metalog        [  started  ]
 oidentd        [  started  ]
 rpcbind        [  started  ]
 spamd          [  started  ]
 rpc.pipefs     [  started  ]
 rpc.gssd       [  started  ]
 fcron          [  started  ]
 sshd           [  started  ]
 xdm-setup      [  started  ]
 dbus           [  started  ]
 gpm            [  started  ]
 xdm            [  started  ]
 rpc.statd      [  started  ]
 rpc.idmapd     [  started  ]
 nfsmount       [  started  ]
 ntpd           [  started  ]
 acpid          [  started  ]
 laptop_mode    [  started  ]
 hdapsd         [  started  ]
 smartd         [  started  ]
 udev-postmount [  started  ]
 local          [  started  ]
Runlevel: boot
 hwclock        [  started  ]
 udev-fix       [  started  ]
 fsck           [  started  ]
 root           [  started  ]
 mtab           [  started  ]
 localmount     [  started  ]
 procfs         [  started  ]
 sysctl         [  started  ]
 bootmisc       [  started  ]
 net.lo         [  started  ]
 termencoding   [  started  ]
 keymaps        [  started  ]
 consolefont    [  started  ]
 hostname       [  started  ]
 alsasound      [  started  ]
 microcode_ctl  [  started  ]
 urandom        [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
Dynamic Runlevel: manual
 ntp-client     [  started  ]
darkhorse ~ # rc-status -u|grep started
 dhcpcd         [  started  ]
 ntp-client     [  started  ]

I expect "rc-status -a" command to list all started init scripts.
emerge --info:
Portage 2.2.0_alpha90 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.5 x86_64)
=================================================================
System uname: Linux-3.2.5-x86_64-Intel-R-_Core-TM-_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.1
Timestamp of tree: Wed, 21 Mar 2012 20:30:01 +0000
app-shells/bash:          4.2_p24
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo proaudio local
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://vesnet/ http://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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/pro-audio /usr/local/portage"
SYNC="rsync://server/gentoo-portage/"
USE="X a52 aac acpi alsa amd64 amr audiofile avx bash-completion berkdb bluetooth bluray bzip2 cairo caps cdparanoia cracklib crypt cscope css cups curl cxx dbus djvu dri dts dvb dvd dvdr dvdread enca encode exceptions exif expat faac faad fam fbcon ffmpeg fftw flac fltk fluidsynth fontconfig foomaticdb ftp gcrypt gd gdbm geoip gif gimp git glib gmp gpm graphviz gstreamer gtk gtk2 hunspell iconv icu id3tag idn imagemagick imap imlib ipv6 ithreads jack javascript jpeg jpeg2k kerberos ladspa lame lash lcms libsamplerate lua lzma lzo mad matroska mbox midi mikmod mmap mmx mmxext mng mp3 mp4 mpeg multilib ncurses network network-cron nls nocd nptl nsplugin offensive ogg opencl opengl openmp orc pam pcre pdf perl png portaudio pulseaudio python qt3support qt4 quicktime raw readline recode ruby sasl sdl session smp sndfile speex spell sqlite sse sse2 sse3 sse4_1 ssl ssse3 svg taglib tcl tcltk tcpd theora threads threadsafe tiff tk truetype udev unicode usb v4l vaapi vdpau video videos vim-syntax vorbis vpx webkit wifi wxwidgets x264 xcb xface xml xmp xosd xpm xulrunner xv xvid xz zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="directory ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" RUBY_TARGETS="ruby18" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="nvidia intel"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 parafin 2012-03-28 15:41:29 UTC
Here's also example from the stable version of openrc (0.9.8.4), which doesn't display even manually started services:
spobs ~ # /etc/init.d/monit status
 * status: started
spobs ~ # rc-status -a|grep monit
spobs ~ # rc-status -u|grep monit
 lvm-monitoring                                                    [  stopped  ]
 monit                                                             [  started  ]
Comment 2 Alexander Vershilov (RETIRED) gentoo-dev 2013-07-14 07:03:18 UTC
Created attachment 353246 [details, diff]
patch that fixes situation

Yes there was a problem when latest tracked service wasn't shown in rc-status output. It was due to incorrect export of RC_SVCNAME env variable. This patch fixes situation for manual runlevel. 

It was also sent to upstream by pull request.
Comment 3 Alexander Vershilov (RETIRED) gentoo-dev 2013-07-14 07:19:49 UTC
Changed bug state. And sorry for a delay.
Comment 4 William Hubbs gentoo-dev 2013-07-16 19:35:58 UTC
This has been added in commit 0f70cd0.
Thanks for the report.