Ver código fonte

Fixed systemd service

Brendan Abolivier 8 anos atrás
pai
commit
3bd07532c0
Assinado por: Brendan Abolivier <contact@brendanabolivier.com> ID da chave GPG: 8EF1500759F70623
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4
    2
      init/linux-systemd/smam.service

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

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