From 816c5a2c9e067f6ce50b851b2d318c225466c947 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Fri, 10 Feb 2023 21:58:22 +0000 Subject: [PATCH] add start script and sample systemd service Signed-off-by: Arthur Lu --- proxmoxaas-api.service | 11 +++++++++++ start.sh | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 proxmoxaas-api.service create mode 100755 start.sh diff --git a/proxmoxaas-api.service b/proxmoxaas-api.service new file mode 100644 index 0000000..ec3c38b --- /dev/null +++ b/proxmoxaas-api.service @@ -0,0 +1,11 @@ +[Unit] +Description=proxmoxaas-api +After=network.target +[Service] +WorkingDirectory=//ProxmoxAAS-API/ +ExecStart=//ProxmoxAAS-API/start.sh +Restart=always +RestartSec=10 +Type=simple +[Install] +WantedBy=default.target \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..c224329 --- /dev/null +++ b/start.sh @@ -0,0 +1,2 @@ +#!/bin/sh +node . \ No newline at end of file