net-misc/FORT-validator: IPv6 listening and init script improvement
This commit is contained in:
parent
61720bbc35
commit
0de742ce4c
|
@ -6,4 +6,5 @@
|
||||||
FORT_BASEDIR="/var/lib/fort/"
|
FORT_BASEDIR="/var/lib/fort/"
|
||||||
FORT_OPTS="--tal /usr/share/fort/tal/ \
|
FORT_OPTS="--tal /usr/share/fort/tal/ \
|
||||||
--local-repository ${FORT_BASEDIR}
|
--local-repository ${FORT_BASEDIR}
|
||||||
--log.output syslog"
|
--log.output syslog
|
||||||
|
--server.address ::"
|
||||||
|
|
|
@ -9,6 +9,7 @@ command_args="${FORT_OPTS}"
|
||||||
command_user="fort"
|
command_user="fort"
|
||||||
pidfile="/run/${RC_SVCNAME}.pid"
|
pidfile="/run/${RC_SVCNAME}.pid"
|
||||||
command_background=true
|
command_background=true
|
||||||
|
retry=20
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need net
|
need net
|
||||||
|
@ -16,4 +17,14 @@ depend() {
|
||||||
|
|
||||||
start_pre() {
|
start_pre() {
|
||||||
checkpath -d -m 0750 -o fort:fort ${FORT_BASEDIR}
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue