Op 30-10-2008 om 01:04 schreef Geert Stappers: > > find attached the same patch >
--- apt-proxy 2008/10/29 22:30:21 2.0 +++ apt-proxy 2008/10/30 00:47:01 @@ -14,6 +14,7 @@ pidfile=$rundir/apt-proxy.pid logfile=/var/log/apt-proxy.log application=/usr/sbin/apt-proxy +process=$(basename $application) twistd=/usr/bin/twistd user=aptproxy group=nogroup @@ -53,6 +54,8 @@ start-stop-daemon --start --quiet --exec $twistd -- \ --pidfile=$pidfile --rundir=$rundir --python=$application \ --logfile=$logfile --no_save + sleep 1 # for some startup time and then check + ps -eo cmd | grep -q ^$process log_end_msg $? ;;