From 43c84308b7e3701a16c631b9114b4abea6e07557 Mon Sep 17 00:00:00 2001 From: Travis Kemen Date: Fri, 26 Feb 2010 04:54:10 +0000 Subject: [PATCH] [patchteam] ez-ipupdate: [PATCH] unnecessarily runs as a daemon (also allow multiple instances), closes #4874 SVN-Revision: 19866 --- net/ez-ipupdate/files/ez-ipupdate.hotplug | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/net/ez-ipupdate/files/ez-ipupdate.hotplug b/net/ez-ipupdate/files/ez-ipupdate.hotplug index f9c96a4101..0c1b6638fe 100644 --- a/net/ez-ipupdate/files/ez-ipupdate.hotplug +++ b/net/ez-ipupdate/files/ez-ipupdate.hotplug @@ -21,8 +21,10 @@ case "$ACTION" in config_get enabled $cfg enabled enabled=${enabled:-1} + config_get service $cfg service + config_get pidfile $cfg pidfile - pidfile=${pidfile:-/var/run/$NAME-$dev.pid} + pidfile=${pidfile:-/var/run/$NAME-$service-$dev.pid} case "$ACTION" in ifdown) @@ -33,12 +35,11 @@ case "$ACTION" in 1|yes|true) [ ! -e $pidfile ] && { config_get cache $cfg cache - [ -z "$cache" ] && cache=/tmp/$NAME-$dev.cache + [ -z "$cache" ] && cache=/tmp/$NAME-$service-$dev.cache config_get config $cfg config [ -z "$config" ] && { - config=/var/run/$NAME-$dev.conf - config_get service $cfg service + config=/var/run/$NAME-$service-$dev.conf config_get username $cfg username config_get password $cfg password config_get hostname $cfg hostname @@ -54,7 +55,7 @@ quiet EOF } - $COMMAND -d -c $config 2>&1 | logger -t $NAME & + $COMMAND -c $config 2>&1 | logger -t $NAME & } ;; *) -- 2.30.2