Explorar el Código

Added systemd script

Brendan Abolivier hace 8 años
padre
commit
f306f979dc
Firmado por: Brendan Abolivier <contact@brendanabolivier.com> ID clave GPG: 8EF1500759F70623
Se han modificado 1 ficheros con 17 adiciones y 0 borrados
  1. 17
    0
      init/linux-systemd/smam.service

+ 17
- 0
init/linux-systemd/smam.service Ver fichero

@@ -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