Browse Source

Merge pull request #6 from babolivier/development

Systemd service
Brendan Abolivier 8 years ago
parent
commit
7448fd4cea
1 changed files with 19 additions and 0 deletions
  1. 19
    0
      init/linux-systemd/smam.service

+ 19
- 0
init/linux-systemd/smam.service View 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