Pārlūkot izejas kodu

Merge pull request #6 from babolivier/development

Systemd service
Brendan Abolivier 8 gadus atpakaļ
vecāks
revīzija
7448fd4cea
1 mainītis faili ar 19 papildinājumiem un 0 dzēšanām
  1. 19
    0
      init/linux-systemd/smam.service

+ 19
- 0
init/linux-systemd/smam.service Parādīt failu

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