Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348109 - net-misc/iodine iodined shows up as 'crashed' in rc-status although it's running
Summary: net-misc/iodine iodined shows up as 'crashed' in rc-status although it's running
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Víctor Ostorga (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-08 03:54 UTC by Patrick
Modified: 2012-06-07 19:55 UTC (History)
2 users (show)

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


Attachments
proper openrc init script (iodined.init,1.50 KB, text/plain)
2012-06-02 01:47 UTC, Jason A. Donenfeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick 2010-12-08 03:54:01 UTC
net-misc/iodine-0.6.0_rc1's iodined can be launched via the included /etc/init.d/iodined init script. The daemon starts up, but rc-status (from sys-apps/openrc-0.6.7) reports 'crashed'.

Reproducible: Always

Steps to Reproduce:
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-09 21:06:06 UTC
Please post your `emerge --info' output in a comment.
Comment 2 Patrick 2010-12-10 01:57:08 UTC
Ok, here it is:

# emerge --info
Portage 2.1.9.24 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11.2-r3, 2.6.35-vs2.3.0.36.32-gentoo x86_64)
=================================================================
System uname: Linux-2.6.35-vs2.3.0.36.32-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 10 Dec 2010 00:00:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.7
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
PORTDIR_OVERLAY="/var/lib/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 apache2 bash-completion berkdb bzip2 cjk cli cracklib crypt curl curlwrappers cxx dri exif gdbm gnutls iconv icq idn imagemagick imap innodb ipv6 jabber javascript jpeg mhash mime mmx modules mpeg msn mudflap multilib ncurses nls nptl nptlonly nsplugin offensive oscar pam pcre perl plotutils png pppd python readline ruby sasl session slang sse sse2 ssl sysfs threads tiff truetype unicode userlocales vhosts xml xorg yahoo 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" 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" 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="void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Marc Schiffbauer gentoo-dev 2011-10-24 11:40:46 UTC
I can confirm this, too on ARCH=amd64 using  net-misc/iodine-0.6.0_rc1

The fix is simple, just add a pid file:

--- files/iodined.init.orig     2011-10-24 13:39:11.932476692 +0200
+++ files/iodined.init  2011-10-24 13:39:20.484342648 +0200
@@ -49,7 +49,8 @@
                eerror "Please set a domain (IODINED_DOMAIN) in /etc/conf.d/iodined!"
                return 1
        fi
-       start-stop-daemon --start --exec /usr/bin/iodined -- $ARGS
+       PID_FILE="/var/run/iodined.pid"
+       start-stop-daemon --start --exec /usr/bin/iodined --pidfile $PID_FILE -- -F $PID_FILE $ARGS
        eend $?
 }
Comment 4 Jason A. Donenfeld gentoo-dev 2012-06-02 01:47:59 UTC
Created attachment 313901 [details]
proper openrc init script

This one is a bit more proper, stopping it the right way using the PID file.
Comment 5 Mike Gilbert gentoo-dev 2012-06-07 19:55:22 UTC
+*iodine-0.6.0_rc1-r1 (07 Jun 2012)
+
+  07 Jun 2012; Mike Gilbert <floppym@gentoo.org>
+  +files/iodine-0.6.0_rc1-ifconfig-path.patch, +iodine-0.6.0_rc1-r1.ebuild,
+  files/iodined.init:
+  Look for ifconfig in /bin and /sbin, bug 419151. Use pidfile in init script,
+  bug 348109. Patches by Jason Donenfeld.
+