Explorar el Código

Fixed systemd service

Brendan Abolivier hace 8 años
padre
commit
3bd07532c0
Firmado por: Brendan Abolivier <contact@brendanabolivier.com> ID clave GPG: 8EF1500759F70623
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4
    2
      init/linux-systemd/smam.service

+ 4
- 2
init/linux-systemd/smam.service Ver fichero

@@ -7,11 +7,13 @@ Requires=caddy.service
7 7
 
8 8
 [Service]
9 9
 Restart=on-failure
10
-; User smam's home directory is the directory where SMAM's server.js is found
10
+; Use a specific user
11 11
 User=smam
12 12
 Group=smam
13
+; Working directory
14
+WorkingDirectory=/etc/smam
13 15
 ; Start with NPM
14
-ExecStart=npm start
16
+ExecStart=/usr/bin/npm start
15 17
 
16 18
 [Install]
17 19
 WantedBy=multi-user.target