Package: ngircd Version: 0.12.1-1 Severity: minor Tags: patch When /var/run/ is a tmpfs (that's the case in Ubuntu), the /var/run/ngircd/ directory needs to be re-created after, for example, a reboot of the system. Before starting the daemon, the ngircd init script should check whether the directory exists, and if not, should create it and give it proper permissions.
I took the few bash lines from the postinst script, and changed them to use $PIDDIR instead of /var/run/, $PIDDIR being set at the beginning of the script. See the patch from svn rev. 226 attached. Once this bug is fixed and the package uploaded, it will allow Ubuntu to synchronize with Debian. -- Adrien Cunin aka Adri2000
Index: ngircd.init =================================================================== --- ngircd.init (révision 226) +++ ngircd.init (copie de travail) @@ -36,7 +36,8 @@ DESC="Next generation IRC daemon" LOGDIR=/var/log/ -PIDFILE=/var/run/ngircd/$NAME.pid +PIDDIR=/var/run/ngircd +PIDFILE=$PIDDIR/$NAME.pid test -x $DAEMON || exit 0 @@ -154,6 +155,13 @@ log_end_msg 0 exit 0 fi + # If $PIDDIR doesn't exist, create it and give it proper permissions + # Useful if $PIDDIR is in a tmpfs + if [ ! -d "$PIDDIR" ]; then + mkdir $PIDDIR + chown irc:irc $PIDDIR + chmod 770 $PIDDIR + fi if start_server ; then # NOTE: Some servers might die some time after they start, # this code will detect this issue if STARTTIME is set
signature.asc
Description: Digital signature