summaryrefslogtreecommitdiffhomepage
path: root/examples/var_service/dhcp_if_pinger/run
diff options
context:
space:
mode:
Diffstat (limited to 'examples/var_service/dhcp_if_pinger/run')
-rwxr-xr-xexamples/var_service/dhcp_if_pinger/run16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/var_service/dhcp_if_pinger/run b/examples/var_service/dhcp_if_pinger/run
index 8aca90c1a..25341243f 100755
--- a/examples/var_service/dhcp_if_pinger/run
+++ b/examples/var_service/dhcp_if_pinger/run
@@ -21,9 +21,9 @@ if test -f "$0.log"; then
mv "$0.log.new" "$0.log"
fi
-test -f "/var/service/dhcp_$if/env.out" || exec env - sleep "$ping_time"
+test -f "../dhcp_$if/env.out" || exec env - sleep "$ping_time"
-. "/var/service/dhcp_$if/env.out"
+. "../dhcp_$if/env.out"
test x"$router" != x"" || exec env - sleep "$ping_time"
#msg "Pinging $router"
@@ -36,12 +36,12 @@ while true; do
env - sleep "$retry_time"
done
-test -d "/var/service/dhcp_$if" && {
- msg "Restarting /var/service/dhcp_$if"
- sv t "/var/service/dhcp_$if"
+test -d "../dhcp_$if" && {
+ msg "Restarting dhcp_$if"
+ svc -t "dhcp_$if"
}
-test -d "/var/service/supplicant_$if" && {
- msg "Restarting /var/service/supplicant_$if"
- sv t "/var/service/supplicant_$if"
+test -d "../supplicant_$if" && {
+ msg "Restarting supplicant_$if"
+ svc -t "supplicant_$if"
}
exec env - sleep "$ping_time"