mirror of
https://github.com/apache/nifi.git
synced 2025-02-07 18:48:51 +00:00
NIFI-7192 Added systemd reload to nifi.sh install on systemd servers
This closes #4079 Signed-off-by: Joey Frazee <jfrazee@apache.org>
This commit is contained in:
parent
2f3380390d
commit
a8fd5993eb
@ -245,6 +245,11 @@ SERVICEDESCRIPTOR
|
||||
ln -s "/etc/init.d/${SVC_NAME}" "/etc/rc2.d/K65${SVC_NAME}" || { echo "Could not create link /etc/rc2.d/K65${SVC_NAME}"; exit 1; }
|
||||
echo "Service ${SVC_NAME} installed"
|
||||
fi
|
||||
|
||||
# systemd: generate nifi.service from init.d
|
||||
if [ -d "/run/systemd/system/" ] || [ ! -z "$(pidof systemd 2>/dev/null)" ]; then
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
}
|
||||
|
||||
is_nonzero_integer() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user