RC services update

1. NFS - fix service reload
2. RPC - fix service reload
3. NGINX - remove HTTPS port in FQDN redirect when default 443
4. All services - register IPv4 Link local assignment (169.254.xxx.xxx)
5. All services - make lock file programmable
This commit is contained in:
bergware
2023-06-21 18:04:29 +02:00
parent 9ee4b20225
commit 9e2d24460a
6 changed files with 13 additions and 22 deletions
@@ -1,9 +1,9 @@
#!/bin/bash
SERVICES="sshd avahidaemon samba rpc nfsd ntpd nginx"
job=/tmp/atjob.tmp
[[ -n $1 && -e $job ]] && exit 0
touch $job
if [[ -n $1 ]]; then
[[ ! -e $1 ]] && touch $1 || exit 0
fi
for cmd in $SERVICES; do
if /etc/rc.d/rc.$cmd update; then
/etc/rc.d/rc.$cmd reload >/dev/null 2>&1