Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 21036

Summary: /etc/init.d handler does not run perl based script on start-up
Product: Gentoo Linux Reporter: Derk W te Bokkel <derk.tebokkel>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED WONTFIX    
Severity: normal CC: cretin, pfeifer
Priority: High    
Version: 1.4_rc4   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Derk W te Bokkel 2003-05-14 22:17:15 UTC
on start-up the /etc/init.d/ptal-init script (link to /usr/local/sbin/ptal-init  part of hpoj / hpijs) 
which used to work has stopped working properly as the init.d handler claims  
that there is a syntax error in the file. 
 
on manual use the script works fine.. and had since Nov 2002 when it was first installed. 
 
 
something in the runlevel handler has changed so it now chokes on this script. 
 
Can any one help me resolve this? 
 
recent changes include updates to the most recent linux-2.4.21_rc1-gss-r1  
and the most recent baselayout under ~x86 
 
I suspect the baselayout. what changed that might have caused this?
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-21 14:19:55 UTC
I cannot think that it was ever run by the init stuff, as it have since
yonders looked for '#!/sbin/runscript' else it wont run it.  I did inbetween
update some of the error messages and handling (if running 1.8.6.*), so maybe
only noticing it now ...

Anyhow, the init system is not designed to run a straight perl script.  Either
put it in /etc/conf.d/local.start, or create a wrapper script for it.