diff options
-rw-r--r-- | etc/systemd/system/borgwarehouse.service | 14 | ||||
l--------- | etc/systemd/system/multi-user.target.wants/borgwarehouse.service | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/etc/systemd/system/borgwarehouse.service b/etc/systemd/system/borgwarehouse.service new file mode 100644 index 0000000..d2a5fb7 --- /dev/null +++ b/etc/systemd/system/borgwarehouse.service @@ -0,0 +1,14 @@ +[Unit] +Description=BorgWarehouse +Documentation=https://borgwarehouse.com +After=network.target + +[Service] +Type=simple +User=borgwarehouse +WorkingDirectory=/home/borgwarehouse/app +ExecStart=/usr/bin/npm run start +Restart=on-failure + +[Install] +WantedBy=multi-user.target diff --git a/etc/systemd/system/multi-user.target.wants/borgwarehouse.service b/etc/systemd/system/multi-user.target.wants/borgwarehouse.service new file mode 120000 index 0000000..6012b07 --- /dev/null +++ b/etc/systemd/system/multi-user.target.wants/borgwarehouse.service @@ -0,0 +1 @@ +/etc/systemd/system/borgwarehouse.service
\ No newline at end of file |