Summary: | Scripts in /etc/init.d cause strange error in /sbin/runscripts.sh after updating software | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Randy Kahle <randy.kahle> |
Component: | [OLD] Core system | Assignee: | Martin Schlemmer (RETIRED) <azarah> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Randy Kahle
2003-10-14 11:53:43 UTC
what does `qpkg -I -v /etc/init.d/resin-net.variantia` show ? what pkg provides that init.d script ? can you post it here as an attachment ? I did not have qpkg on the machine. emerged, then ran `qpkg -l -v /etc/init.d/resin-net.variantia: vail:/etc/init.d# qpkg -l -v /etc/init.d/resin-net.variantia vail:/etc/init.d# (result is nothing -- this is a custom start-up script) The script itself: <<<<< vail:/etc/init.d# cat resin-net.variantia #!/sbin/runscript # # <<need a header>> # # Run script for variantia.net web services # depend() { need net use dns logger mysql postgresql } start() { ebegin "Starting variantia.net web services with Resin" cd /home/web/sites/net.variantia/bin su - resin -c "/home/web/sites/net.variantia/bin/resin start" eend $? } stop () { ebegin "Stopping variantia.net web services with Resin" cd /home/web/sites/net.variantia/bin su - resin -c "/home/web/sites/net.variantia/bin/resin stop" sleep 2 eend $? } svc_restart () { ebegin "Restarting variantia.net web services" cd /home/web/sites/net.variantia. su - resin -c "/home/web/sites/net.variantia/bin/resin stop" sleep 5 su - resin -c "/home/web/sites/net.variantia/bin/resin start" eend $? } >>>>> The "resin" script: <<<<< vail:/etc/init.d# cat /home/web/sites/net.variantia/bin/resin #!/bin/sh # # Controls starting and stopping resin with a virtual domain # export SERVER_ROOT="/home/web/sites/net.variantia/" export RESIN_HOME="/opt/resin/" export JAVA_HOME="/opt/blackdown-jdk-1.4.1/" # # We want to support flipping state if no parameter is set # if [ ! -z $1 ]; then RESIN_COMMAND=$1 else if [ -e $SERVER_ROOT/a.pid ]; then RESIN_COMMAND="stop" else RESIN_COMMAND="start" fi fi case $RESIN_COMMAND in "start") echo "Starting Resin" ;; "stop") echo "Stopping Resin" ;; *) echo "resin [start|stop]" exit 1 ;; esac $RESIN_HOME/bin/httpd.sh -server-root $SERVER_ROOT \ -conf $SERVER_ROOT/conf/resin.conf \ -pid $SERVER_ROOT/a.pid \ $RESIN_COMMAND >>>>> I know where this take place, not sure why though. Will have a look - possible changes in CVS might already have fixed this, so try 1.8.6.12 when it hits portage early next week hopefully. try 1.9.x or better of baselayout |