pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45775: LPRng startup script wrong pid file



>Number:         45775
>Category:       pkg
>Synopsis:       LPRng startup script wrong pid file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 04 15:05:00 +0000 2012
>Originator:     Nat Sloss
>Release:        NetBSD 5.0.1
>Organization:
>Environment:
NetBSD beast 5.0.1 NetBSD 5.0.1 (BEAST) #92: Mon Jan  2 23:55:27 EST 2012  
build@beast:/home/build/NetBSD-5.0.1_source_tree/usr/src/sys/arch/i386/compile/BEAST
 i386
>Description:
LPRng's rc script uses the wrong pid file 'lpd.pid' where it should be using 
'lpd.515'

When running "/etc/rc.d/LPRng status" a message is displayed that LPRng is not 
running.
>How-To-Repeat:
Enable lprng in rc.conf,

Start lprng.

execute '/etc/rc.d/LPRng status'
>Fix:
I patched LPRng.sh so that it references the correct pid file.

--- files/LPRng.sh.orig 2011-12-10 01:59:28.000000000 +1100
+++ files/LPRng.sh      2011-12-10 01:41:57.000000000 +1100
@@ -10,7 +10,7 @@
 name="LPRng"
 rcvar=$name
 command="@PREFIX@/sbin/lpd"
-pidfile="/var/run/lpd.pid"
+pidfile="/var/run/lpd.515"
 required_files="@PKG_SYSCONFDIR@/lpd/lpd.conf"

 LPRng_prestart()


I tried changing configure options to change it to lpd.pid to no avail.  The 
only other option is to patch the source, but I think it's easier to modify the 
start up script.

Regards,

Nat.



Home | Main Index | Thread Index | Old Index