Browse Source

Daemon install script: use correct link dir for systemd

Christian Kahlau 3 years ago
parent
commit
c4b55d064a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      daemon/install/install.sh

+ 2 - 1
daemon/install/install.sh

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