Browse Source

Added systemd script

Brendan Abolivier 8 years ago
parent
commit
f306f979dc
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      init/linux-systemd/smam.service

+ 17
- 0
init/linux-systemd/smam.service View File

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