Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338922 - [PATCH] net-wireless/wimax-1.5 init script doesn't stop daemon
Summary: [PATCH] net-wireless/wimax-1.5 init script doesn't stop daemon
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Alexey Shvetsov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-27 12:49 UTC by Roman Sergeev
Modified: 2010-11-08 18:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Sergeev 2010-09-27 12:49:21 UTC
wrong init-script PID 

Reproducible: Always

Steps to Reproduce:
1./etc/init.d/wimax create PID=/var/run/wimaxd.wmx0.pid
2.in script used PID=/var/run/wimax.pid
3.

Actual Results:  
init-script can't stop wimax daemon
Comment 1 Roman Sergeev 2010-09-27 12:51:21 UTC
--- wimax.old	2010-09-27 10:06:22.000000000 +0400
+++ wimax.new	2010-09-27 15:48:56.000000000 +0400
@@ -4,7 +4,6 @@
 # $Header: /var/cvsroot/gentoo-x86/net-wireless/wimax/files/wimax,v 1.2 2010/07/26 22:13:27 alexxy Exp $
 
 description="WiMAX Network Service"
-
 depend() {
 	need localmount
 	after bootmisc
@@ -12,13 +11,14 @@ depend() {
 
 start() {
 	ebegin "Starting WiMAX Network Service"
-	[ -e /var/run/wimaxd.pid ] && rm -f /var/run/wimaxd.pid
-	start-stop-daemon --start --quiet --pidfile /var/run/wimax.pid --exec /usr/bin/wimaxd -b
+	[ -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
 	eend $?
 }
 
 stop() {
 	ebegin "Stoping WiMAX Network Service"
-	start-stop-daemon --stop --quiet --pidfile /var/run/wimax.pid
+	start-stop-daemon --stop --quiet --pidfile /var/run/wimaxd.wmx0.pid
 	eend $?
 }
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-09-30 21:50:35 UTC
Please attach your patch to this bug. Thank you
Comment 3 Roman Sergeev 2010-10-02 09:30:52 UTC
all new patches & scripts in this bug
http://bugs.gentoo.org/show_bug.cgi?id=335476
Comment 4 Alexey Shvetsov archtester gentoo-dev 2010-11-08 18:04:24 UTC
Fixed in tree