root/src/usr/local/bin/runmsntp.sh @ ff59b884
1 | 5b237745 | Scott Ullrich | #!/bin/sh
|
---|---|---|---|
2 | |||
3 | # write our PID to file
|
||
4 | echo $$ > $1 |
||
5 | |||
6 | # execute msntp in endless loop; restart if it
|
||
7 | # exits (wait 1 second to avoid restarting too fast in case
|
||
8 | # the network is not yet setup)
|
||
9 | while true; do |
||
10 | 93113909 | Scott Ullrich | /usr/local/bin/msntp -v -r -P no -l $2 -x $3 $4 2>&1 | logger -p daemon.info -i -t msntp |
11 | 815bb75c | Scott Ullrich | sleep 60
|
12 | 5b237745 | Scott Ullrich | done
|