瀏覽代碼

Fixed systemd service

Brendan Abolivier 8 年之前
父節點
當前提交
3bd07532c0
簽署人: Brendan Abolivier <contact@brendanabolivier.com> GPG 金鑰 ID: 8EF1500759F70623
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      init/linux-systemd/smam.service

+ 4
- 2
init/linux-systemd/smam.service 查看文件

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