Brendan Abolivier преди 8 години
родител
ревизия
f306f979dc
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
променени са 1 файла, в които са добавени 17 реда и са изтрити 0 реда
  1. 17
    0
      init/linux-systemd/smam.service

+ 17
- 0
init/linux-systemd/smam.service Целия файл

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