summarylogtreecommitdiffstats
path: root/gonic.service.patch
blob: d0090b8fb154c7b493dc85a104be02da7afafe13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/contrib/gonic.service
+++ b/contrib/gonic.service
@@ -1,6 +1,5 @@
 [Unit]
 Description=Gonic service
-ConditionPathExists=/var/gonic/gonic
 After=network.target
 
 [Service]
@@ -12,17 +11,8 @@
 Restart=on-failure
 RestartSec=10
 
-WorkingDirectory=/var/gonic/
-ExecStart=/var/gonic/gonic -config-path /var/gonic/config
+ExecStart=/usr/bin/gonic -config-path /var/lib/gonic/config
-
-# make sure log directory exists and owned by syslog
-PermissionsStartOnly=true
-ExecStartPre=/bin/mkdir -p /var/log/gonic
-ExecStartPre=/bin/chown syslog:adm /var/log/gonic
-ExecStartPre=/bin/chmod 755 /var/log/gonic
-StandardOutput=syslog
-StandardError=syslog
-SyslogIdentifier=sleepservice
 
 [Install]
 WantedBy=multi-user.target
+