Selaa lähdekoodia

Added systemd script

Brendan Abolivier 8 vuotta sitten
vanhempi
commit
f306f979dc
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 muutettua tiedostoa jossa 17 lisäystä ja 0 poistoa
  1. 17
    0
      init/linux-systemd/smam.service

+ 17
- 0
init/linux-systemd/smam.service Näytä tiedosto

@@ -0,0 +1,17 @@
1
+[Unit]
2
+Description=SMAM (Send Me A Mail) contact form embedding
3
+Documentation=https://github.com/babolivier/smam
4
+; Edit this with your favorite web server
5
+After=caddy.service
6
+Requires=caddy.service
7
+
8
+[Service]
9
+Restart=on-failure
10
+; User smam's home directory is the directory where SMAM's server.js is found
11
+User=smam
12
+Group=smam
13
+; Start with NPM
14
+ExecStart=npm start
15
+
16
+[Install]
17
+WantedBy=multi-user.target