Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356121 - net-wireless/wimax init script error
Summary: net-wireless/wimax init script error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alexey Shvetsov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-22 19:37 UTC by i.Dark_Templar
Modified: 2011-02-23 11:13 UTC (History)
1 user (show)

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


Attachments
Modified init script with this bug fixed (wimax,673 bytes, text/plain)
2011-02-22 19:44 UTC, i.Dark_Templar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description i.Dark_Templar 2011-02-22 19:37:38 UTC
WiMAX init script starts daemon, but it reports it isn't.


Reproducible: Always

Steps to Reproduce:
1. Start wimax service
2. Get error

Actual Results:  
Service starts, but shows it isn't. Output below shows it:

# /etc/init.d/wimax start
wimax           | * Starting WiMAX Network Service ...
wimax           | * start-stop-daemon: caught an interrupt
wimax           | * start-stop-daemon: /usr/bin/wimaxd died                                                                                            [ !! ]
wimax           | * ERROR: wimax failed to start

# ps -e | grep wimaxd
 8280 ?        00:00:00 wimaxd

# /etc/init.d/wimax status
 * status: stopped


Expected Results:  
Service should start without any errors:

# /etc/init.d/wimax start
wimax           | * Caching service dependencies ...                                                                                                   [ ok ]
wimax           | * Starting WiMAX Network Service ...                                                                                                 [ ok ]

# ps -e | grep wimaxd
 8706 ?        00:00:00 wimaxd

# /etc/init.d/wimax status
 * status: started
Comment 1 i.Dark_Templar 2011-02-22 19:44:08 UTC
Created attachment 263549 [details]
Modified init script with this bug fixed

Diff of that init script and original is:

--- /usr//portage/net-wireless/wimax/files/wimax	2010-11-08 21:04:00.000000000 +0300
+++ /usr/local/portage/net-wireless/wimax/files/wimax	2011-02-22 22:25:30.000000000 +0300
@@ -13,7 +13,7 @@
 start() {
 	ebegin "Starting WiMAX Network Service"
 	[ -e /var/run/wimaxd.wmx0.pid ] && rm -f /var/run/wimaxd.wmx0.pid
-	start-stop-daemon --start --quiet --pidfile /var/run/wimaxd.wmx0.pid --exec /usr/bin/wimaxd -b
+	start-stop-daemon --start --quiet --pidfile /var/run/wimaxd.wmx0.pid --exec /usr/bin/wimaxd -- -b
 	eend $?
 }

Looks like "--" is required before "-b" because both wimaxd and start-stop-daemon have this options, so i pass option to wimaxd.

Also, i have in my /etc/rc.conf this lines:
rc_crashed_stop=YES
rc_crashed_start=NO
Comment 2 i.Dark_Templar 2011-02-22 19:46:44 UTC
There is my
# emerge --info

Portage 2.1.9.25 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.32-gentoo-r24.23 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r24.23-x86_64-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 22 Feb 2011 10:45:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       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.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests binpkg-logs distlocks fakeroot fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j3"
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/enlightenment-niifaq /var/lib/layman/lcd-filtering /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr apm bidi bluetooth branding bzip2 cairo caps cdda cdio cdr cleartype cli consolekit cracklib cue cups cxx dbus dga dirac dri dts dvd dvdr emboss encode exif faad fam ffmpeg firefox flac fluidsynth gdu gif gmp gnutls gpm gtk hal iconv icq imlib ipv6 jadetex jpeg kde kdm laptop lcms libass libdvdcss lzma lzo mad matroska midi mikmod mmx mng modules mp3 mp4 mpeg mplayer mtp mudflap multilib ncurses network nls nptl nptlonly ogg openal opengl openmp pango pch pcmcia pcntl pcre pdf pic plasma png policykit posix ppds pppd projectm qt3support qt4 raw readline session sftp sndfile sockets spell sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tga theora threads tiff truetype udev unicode usb utils v4l v4l2 vaapi vdpau videos vorbis wavpack wicd wifi wma wxwidgets x264 xcb xcomposite xine xml xorg xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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" 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="vesa vga nvidia" 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, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Alexey Shvetsov archtester gentoo-dev 2011-02-23 11:13:43 UTC
Fixed incvs