|
|
@@ -63,7 +63,7 @@ echo "[INSTALL] Installing npm runtime dependencies"
|
|
|
$EXC_NPM install --omit=dev
|
|
|
|
|
|
echo "[INSTALL] Creating and enabling systemd unit \"monitoring@daemon.service\""
|
|
|
-SVC_FILE="/etc/systemd/system/monitoring@daemon.service"
|
|
|
+SVC_FILE="/lib/systemd/system/monitoring@daemon.service"
|
|
|
|
|
|
ACTION="update"
|
|
|
if [ ! -f "$SVC_FILE" ]; then
|
|
|
@@ -88,6 +88,7 @@ EOF
|
|
|
|
|
|
if [[ "$ACTION" = "install" ]]; then
|
|
|
systemctl enable monitoring@daemon.service
|
|
|
+ systemctl start monitoring@daemon.service
|
|
|
else
|
|
|
systemctl restart monitoring@daemon.service
|
|
|
fi
|