tags 524020 patch thanks also sprach Avi Rozen <avi.ro...@gmail.com> [2009.04.14.1351 +0200]: > Your choice of wording is unnecessarily harsh
All I can do is apologise: sorry... > This seems unnecessary, but a patch would be welcome. --- noip2.orig 2009-04-14 14:32:15.000000000 +0200 +++ noip2 2009-04-14 14:43:13.000000000 +0200 @@ -13,6 +13,8 @@ NAME=noip2 DAEMON=/usr/bin/$NAME DESCRIPTION="No-IP.com dynamic address update" +CONFFILE=/var/lib/noip2/noip2.conf +DAEMONOPTS= test -x $DAEMON || exit 0 @@ -27,8 +29,17 @@ } do_start () { + if [ ! -w $CONFFILE ]; then + log_action_begin_msg "Creating a read-write copy of the $NAME configuration" + NEWCONFFILE=/dev/shm/noip2-readwrite.conf + cp $CONFFILE $NEWCONFFILE + ret=$? + CONFFILE=$NEWCONFFILE + DAEMONOPTS="${DAEMONOPTS:+$DAEMONOPTS }-c $CONFFILE" + log_action_end_msg $ret $CONFFILE + fi log_daemon_msg "Starting $DESCRIPTION" "$NAME" - start-stop-daemon --quiet --start --exec $DAEMON + start-stop-daemon --quiet --start --exec $DAEMON -- $DAEMONOPTS log_end_msg $? return $? } -- .''`. martin f. krafft <madd...@d.o> Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduck http://vcs-pkg.org `- Debian - when you have better things to do than fixing systems gentoo: the performance placebo.
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)