Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266012 - app-misc/uptimed: sys-apps/openrc reports uptimed as crashed
Summary: app-misc/uptimed: sys-apps/openrc reports uptimed as crashed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Raúl Porcel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-13 15:12 UTC by Peter Kerwien
Modified: 2009-04-14 17:12 UTC (History)
1 user (show)

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


Attachments
/etc/init.d/uptimed patch (uptimed.patch,386 bytes, patch)
2009-04-13 15:14 UTC, Peter Kerwien
Details | Diff
uptimed.init.patch (uptimed.init.patch,698 bytes, patch)
2009-04-13 16:05 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Kerwien 2009-04-13 15:12:26 UTC
When running rc-status from openrc-0.4.3-r1 it thinks uptimed has crashed, even if it's running.

By adding --pidfile "${PIDFILE} to both start-stop-daemon under start() in /etc/init.d/uptimed, it will add necessary information to /lib64/rc/init.d/daemons/uptimed/001 and /lib64/rc/init.d/daemons/uptimed/002 and rc-status will then report correct result.

Reproducible: Always

Steps to Reproduce:
1. Install openrc-0.4.3-r1 and uptimed-0.3.16-r4
2. Start uptimed
3. Run rc-status. It will report uptimed as crashed even if it is running.




pc3 ~ # emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29.1 x86_64)
=================================================================
System uname: Linux-2.6.29.1-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5
Timestamp of tree: Mon, 13 Apr 2009 02:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /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/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.bg/ http://mirror.fslutd.org/linux/distributions/gentoo/ http://140.127.177.17/pub/Linux/Gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://server2/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi alsa amd64 apache2 avahi berkdb bzip2 cairo caps cdr cgi cli cracklib crypt ctype cups dbus directfb dri dts dvd dvdr dvdread encode fastcgi ffmpeg flac fortran gd gdbm gif gnome gnome-keyring gpm graphviz gtk hal iconv imagemagick imap isdnlog java jpeg ldap logrotate mad maildir matroska mhash midi mmx mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl php png posix pppd pulseaudio python readline reflection samba sasl session spl sqlite sse sse2 ssl subversion svg sysfs tcpd threads tiff truetype unicode usb vorbis x264 xml xmlrpc xorg xscreensaver xulrunner 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Peter Kerwien 2009-04-13 15:14:32 UTC
Created attachment 188244 [details, diff]
/etc/init.d/uptimed patch

Proposed patch for /etc/init.d/uptimed
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-13 16:05:04 UTC
Created attachment 188247 [details, diff]
uptimed.init.patch

This is the same as Peter's patch but this time as unified diff

Peter, thanks for providing a working fix. This problem bugged me for quite a while now, especially because I did the changes which lead to openrc seeing uptimed as crashed :-/
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2009-04-14 17:12:56 UTC
Fixed, thanks.