From 0de742ce4cc09ca08fda161a4099535d30c5edef Mon Sep 17 00:00:00 2001 From: alarig Date: Mon, 17 Feb 2020 08:43:28 +0100 Subject: [PATCH] net-misc/FORT-validator: IPv6 listening and init script improvement --- net-misc/FORT-validator/files/fort-confd | 3 ++- net-misc/FORT-validator/files/fort-initd | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/net-misc/FORT-validator/files/fort-confd b/net-misc/FORT-validator/files/fort-confd index 5a4c79a..18b6f1b 100644 --- a/net-misc/FORT-validator/files/fort-confd +++ b/net-misc/FORT-validator/files/fort-confd @@ -6,4 +6,5 @@ FORT_BASEDIR="/var/lib/fort/" FORT_OPTS="--tal /usr/share/fort/tal/ \ --local-repository ${FORT_BASEDIR} - --log.output syslog" + --log.output syslog + --server.address ::" diff --git a/net-misc/FORT-validator/files/fort-initd b/net-misc/FORT-validator/files/fort-initd index f35eaeb..0b11c71 100644 --- a/net-misc/FORT-validator/files/fort-initd +++ b/net-misc/FORT-validator/files/fort-initd @@ -9,6 +9,7 @@ command_args="${FORT_OPTS}" command_user="fort" pidfile="/run/${RC_SVCNAME}.pid" command_background=true +retry=20 depend() { need net @@ -16,4 +17,14 @@ depend() { start_pre() { checkpath -d -m 0750 -o fort:fort ${FORT_BASEDIR} + + if [ "${RC_CMD}" = "restart" ] ; then + RUNNING_RSYNC="full" + + while [ "${RUNNING_RSYNC}" ]; do + sleep 5 + RUNNING_RSYNC=$(pgrep -u fort rsync) + return 0 + done + fi }