retitle 630576 spurious warning message at boot time
severity 630576 minor
tags 630576 + patch
thanks

Hi,

[email protected] wrote (15 Jun 2011 11:19:35 GMT) :
> Upon boot one sees in /var/log/boot and on the console:
> Wed Jun 15 19:07:55 2011: pid file is exist in /var/run/pdnsd.pid, stop it or 
> restart
> ... ^[[33m(warning).^[[39;49m
> However it apparently does get started OK.

So given the initscript works well otherwise,
it looks like this is a spurious and apparently warning message.
Retitling and setting severity accordingly.

Patch attached against current collab-maint repo (lagging behind the
last few NMU's but still).

diff --git a/debian/init.d b/debian/init.d
index 1ba8846..8532c90 100755
--- a/debian/init.d
+++ b/debian/init.d
@@ -48,14 +48,6 @@ gen_cache()
     fi	
 }
 
-check_pid()
-{
-	if test -f "$PIDFILE"; then
-		log_warning_msg "pid file exists in $PIDFILE, stop $pdnsd it or restart $pdnsd"
-		exit 1
-	fi
-}
-
 start_resolvconf()
 {
     test -x /sbin/resolvconf || return
@@ -85,7 +77,6 @@ stop_resolvconf()
 pdnsd_start()
 {
     if is_yes "$START_DAEMON"; then
-    	check_pid
         log_begin_msg "Starting $NAME"
         start-stop-daemon --oknodo --start --quiet --pidfile "$PIDFILE" \
             --exec "$DAEMON" -- --daemon -p "$PIDFILE" $START_OPTIONS

Reply via email to