net-misc/FORT-validator: IPv6 listening and init script improvement

This commit is contained in:
Alarig Le Lay 2020-02-17 08:43:28 +01:00
parent 61720bbc35
commit 0de742ce4c
2 changed files with 13 additions and 1 deletions

View File

@ -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 ::"

View File

@ -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
}