From 8ddd371557d626f6586282c3345e3a2a8f7ee487 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 10 Nov 2011 01:19:04 +0100 Subject: //retiolum update: cp tinc-up and restart tincd This commit updates /etc's tinc-up if it has changed and then restarts tincd. If tinc-up hasn't changed then only HUP and ALRM are sent to the retiolum tincd process. --- retiolum/bin/restart-tincd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 retiolum/bin/restart-tincd (limited to 'retiolum/bin/restart-tincd') diff --git a/retiolum/bin/restart-tincd b/retiolum/bin/restart-tincd new file mode 100755 index 00000000..17d939d9 --- /dev/null +++ b/retiolum/bin/restart-tincd @@ -0,0 +1,14 @@ +#! /bin/sh +set -xeuf + +PATH="$(dirname $(readlink -f "$0"))${PATH+:$PATH}" + +if args="`pgrep-retiolum-tincd-args`"; then + while $args --kill; do + sleep 1 + done + $args +else + echo "$0: there is no retiolum tincd process to restart" >&2 + exit 23 +fi -- cgit v1.2.3