summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornroi2018-05-06 11:09:20 +0200
committernroi2018-05-06 11:11:06 +0200
commitbc3cb4bd6ca85dd4d4aff011006d868206e352e3 (patch)
treef0542cc02843c307ed29b9b1154890fed7c3cdfc
parent0f4d4abdbe9ef444053b4f2643159391264b6b13 (diff)
downloadaur-bc3cb4bd6ca85dd4d4aff011006d868206e352e3.tar.gz
Add ExecStop
The default kill method does not cause a clean shutdown of the erlang node. When running "systemctl restart cpcache", Erlang complains that a node with the given name already exists.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--cpcache.service2
3 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e3adf63f170..b38ec243c88 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -16,7 +16,7 @@ pkgbase = cpcache-git
sha256sums = SKIP
sha256sums = 0098e749b19617c0f7d619d47a3bc3015bab62e9ad0916087502daff672fb309
sha256sums = 36ca6d8f0f88f8087c21a68aac6b065de70fb480f670f1fa29071626b1b5499f
- sha256sums = 85c0e0bb6fe4c78c35481fd2f694e223b1d957b59fdc207dad0911bb59bfe765
+ sha256sums = c4007bd6dd055e5edf09d54a840c957b7e5dab45ae85be4b26b41e34e9f63f19
pkgname = cpcache-git
diff --git a/PKGBUILD b/PKGBUILD
index 92ac5ee2b2e..b64b9fc5b8e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,7 @@ source=('git+https://github.com/nroi/cpcache.git'
sha256sums=('SKIP'
'0098e749b19617c0f7d619d47a3bc3015bab62e9ad0916087502daff672fb309'
'36ca6d8f0f88f8087c21a68aac6b065de70fb480f670f1fa29071626b1b5499f'
- '85c0e0bb6fe4c78c35481fd2f694e223b1d957b59fdc207dad0911bb59bfe765'
+ 'c4007bd6dd055e5edf09d54a840c957b7e5dab45ae85be4b26b41e34e9f63f19'
)
pkgver() {
diff --git a/cpcache.service b/cpcache.service
index 05553c905bd..d8fa6f5a8df 100644
--- a/cpcache.service
+++ b/cpcache.service
@@ -7,11 +7,11 @@ Type=simple
# Shutdown can be somewhat sluggish on low-end devices like the RPi.
TimeoutSec=90
SuccessExitStatus=143
-KillMode=process
User=cpcache
Group=cpcache
Environment="ELIXIR_ERL_OPTIONS=-sname cpcache -mnesia dir '/var/cache/cpcache/mnesia'"
ExecStart=/usr/share/cpcache/bin/cpcache foreground
+ExecStop=/usr/share/cpcache/bin/cpcache stop
[Install]
WantedBy=multi-user.target