diff options
author | Dimitri Pertin | 2020-06-15 13:10:55 +0200 |
---|---|---|
committer | Dimitri Pertin | 2020-06-15 13:10:55 +0200 |
commit | 50937239fac18ff207f36a3e60429b3669c1f701 (patch) | |
tree | ebef77c34f45ceb0cc65d2a501094c928f95153f /gonic.service.patch | |
parent | 6d74e279db128ed6d67ae01ab147c3ca8e80561f (diff) | |
download | aur-50937239fac18ff207f36a3e60429b3669c1f701.tar.gz |
Update to 0.9.2
The daemon configuration used to be managed inside the systemd unit
with environment variables. This commit brings modifications and relies on:
1. the systemd unit provided by the gonic repository
2. the configuration file also provided which is now `/var/lib/gonic/config`
Both files are patched to match archlinux guidelines.
Diffstat (limited to 'gonic.service.patch')
-rw-r--r-- | gonic.service.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gonic.service.patch b/gonic.service.patch new file mode 100644 index 000000000000..d0090b8fb154 --- /dev/null +++ b/gonic.service.patch @@ -0,0 +1,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 ++ |