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:
Roberto Marturano 2020-02-24 19:49:49 +01:00 committed by Joey Frazee
parent 2f3380390d
commit a8fd5993eb

View File

@ -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; } 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" echo "Service ${SVC_NAME} installed"
fi 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() { is_nonzero_integer() {