Update service configuration for PVE Scripts installation
This commit is contained in:
parent
fe6cea1410
commit
2375d93880
@ -35,17 +35,14 @@ chmod 755 data
|
|||||||
$STD npm run build
|
$STD npm run build
|
||||||
msg_ok "Installed PVE Scripts local"
|
msg_ok "Installed PVE Scripts local"
|
||||||
|
|
||||||
SERVICE_NAME="pvescriptslocal"
|
|
||||||
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
cat > "$SERVICE_FILE" <<EOF
|
cat > "etc/systemd/system/pvescriptslocal.service" <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=PVEScriptslocal Service
|
Description=PVEScriptslocal Service
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=${INSTALL_DIR}
|
WorkingDirectory=/opt/ProxmoxVE-Local
|
||||||
ExecStart=/usr/bin/npm start
|
ExecStart=/usr/bin/npm start
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
@ -56,7 +53,7 @@ User=root
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl enable -q --now $SERVICE_NAME
|
systemctl enable -q --now pvescriptslocal
|
||||||
|
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user