Sfoglia il codice sorgente

Merge pull request #6 from babolivier/development

Systemd service
Brendan Abolivier 8 anni fa
parent
commit
7448fd4cea
1 ha cambiato i file con 19 aggiunte e 0 eliminazioni
  1. 19
    0
      init/linux-systemd/smam.service

+ 19
- 0
init/linux-systemd/smam.service Vedi File

@@ -0,0 +1,19 @@
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
+; Use a specific user
11
+User=smam
12
+Group=smam
13
+; Working directory
14
+WorkingDirectory=/etc/smam
15
+; Start with NPM
16
+ExecStart=/usr/bin/npm start
17
+
18
+[Install]
19
+WantedBy=multi-user.target