add start script and sample systemd service

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-02-10 21:58:22 +00:00
parent 47e3cafc8b
commit b69d248560
2 changed files with 13 additions and 0 deletions

11
proxmoxaas-api.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=proxmoxaas-api
After=network.target
[Service]
WorkingDirectory=/<path to dir>/ProxmoxAAS-API/
ExecStart=/<path to dir>/ProxmoxAAS-API/start.sh
Restart=always
RestartSec=10
Type=simple
[Install]
WantedBy=default.target

2
start.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
node .