aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam <[email protected]>2021-01-05 02:33:41 +0000
committerGitHub <[email protected]>2021-01-05 02:33:41 +0000
commit1516ec6281f97c10dee6dde4a7eb8371e70408c4 (patch)
tree462bde0b394dff64c3fb673482fdb96ba3bb9a8e
parentfix: try to remove thumbnail only if the file has one (diff)
downloadhost.fuwn.me-1516ec6281f97c10dee6dde4a7eb8371e70408c4.tar.xz
host.fuwn.me-1516ec6281f97c10dee6dde4a7eb8371e70408c4.zip
Create sample service file
Create sample service file for launching/restarting via systemd. Configured by modifying User, WorkingDirectory and EnvironmentFile to reflect username and path. File is to be moved to ```/etc/systemd/system/chibisafe.service```
-rw-r--r--chibisafe-sample.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/chibisafe-sample.service b/chibisafe-sample.service
new file mode 100644
index 0000000..f6c1ed3
--- /dev/null
+++ b/chibisafe-sample.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=chibisafe, easy to use file uploader
+After=network.target
+
+[Service]
+Type=simple
+User=yourusername
+WorkingDirectory=/path/to/chibisafe
+EnvironmentFile=/path/to/chibisafe/.env
+ExecStart=/usr/bin/npm run start
+Restart=always
+
+[Install]
+WantedBy=multi-user.target