summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornroi2017-02-24 19:34:01 +0100
committernroi2017-02-24 19:34:01 +0100
commitf55f89a4a719eda1d9f30a11a7b00420a7bed768 (patch)
treeb429fa5c1b9e9b026672f8d897c86e27f1ec1032
parenta8b503f903b4587588df93434d1807dedbd72fcd (diff)
downloadaur-f55f89a4a719eda1d9f30a11a7b00420a7bed768.tar.gz
Update systemd service file
Increase timeout. Accept 143 as exit code.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--cpcache.service4
3 files changed, 5 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5e605ab7bb1..35a42969773 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -20,7 +20,7 @@ pkgbase = cpcache-git
sha256sums = SKIP
sha256sums = 0098e749b19617c0f7d619d47a3bc3015bab62e9ad0916087502daff672fb309
sha256sums = a6ce949fba102e2f0904622d1f0417be15eee01e76516f80af1aa36a6c8ea312
- sha256sums = bf7ce69ec3df1a1f753df76998607331c0209f7dcd6564f0818cd6e86f4af1ba
+ sha256sums = 88654887a0ad506491778d98dad79004529340e47534538ae2401649ffc94a1b
sha256sums = 6deb112ac11a43a65891f8dcfa6844ca91c4852b8091e354caeac6afd7e00319
pkgname = cpcache-git
diff --git a/PKGBUILD b/PKGBUILD
index 1012cb5e954..ecd4c743f81 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,7 +18,7 @@ source=('git+https://github.com/nroi/cpcache.git'
sha256sums=('SKIP'
'0098e749b19617c0f7d619d47a3bc3015bab62e9ad0916087502daff672fb309'
'a6ce949fba102e2f0904622d1f0417be15eee01e76516f80af1aa36a6c8ea312'
- 'bf7ce69ec3df1a1f753df76998607331c0209f7dcd6564f0818cd6e86f4af1ba'
+ '88654887a0ad506491778d98dad79004529340e47534538ae2401649ffc94a1b'
'6deb112ac11a43a65891f8dcfa6844ca91c4852b8091e354caeac6afd7e00319'
)
diff --git a/cpcache.service b/cpcache.service
index dbbdc8209b1..fcf300095d2 100644
--- a/cpcache.service
+++ b/cpcache.service
@@ -4,8 +4,10 @@ After=network.target
[Service]
Type=simple
+# Shutdown can be somewhat sluggish on low-end devices like the RPi.
+TimeoutSec=30
+SuccessExitStatus=143
KillMode=process
-TimeoutSec=10
User=cpcache
Group=cpcache
Environment="ELIXIR_ERL_OPTIONS=-sname cpcache -mnesia dir '/var/cache/cpcache/mnesia'"