summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Franke2017-09-24 18:31:59 +0200
committerBjoern Franke2017-09-24 18:31:59 +0200
commit21ae99d09fcf4f3791820efbb27742900f7ffc32 (patch)
treeb030099f287b695d520a48140313ecd424974dd8
parent0a38117a4897aaf69e2d91749fe83ad4b0e345b6 (diff)
downloadaur-21ae99d09fcf4f3791820efbb27742900f7ffc32.tar.gz
add restart on failure after 120s to systemd service
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--service2
3 files changed, 4 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9afe4ff7659..4f3f9204c2f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,7 +11,7 @@ pkgbase = pywws
source = https://pypi.python.org/packages/e5/99/00bf9e1ee8eaa615f1fe9e63e7881d64b1e6eecfdfa4818cdb259cf9cfe8/pywws-16.12.0.tar.gz
source = service
md5sums = 6ea2679277c7887fd49fa0dbc6faea17
- md5sums = 7292097afd09a1bacbf4672e31b842e1
+ md5sums = 7eda2524060c6fc0d4dcf3e10be9b7ee
pkgname = pywws
diff --git a/PKGBUILD b/PKGBUILD
index b4cdc950c12..ccd2faf493b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,7 @@ options=(!emptydirs)
source=(https://pypi.python.org/packages/e5/99/00bf9e1ee8eaa615f1fe9e63e7881d64b1e6eecfdfa4818cdb259cf9cfe8/$pkgname-$pkgver.tar.gz
'service')
md5sums=('6ea2679277c7887fd49fa0dbc6faea17'
- '7292097afd09a1bacbf4672e31b842e1')
+ '7eda2524060c6fc0d4dcf3e10be9b7ee')
package() {
diff --git a/service b/service
index af0389097a2..7f4fb24834b 100644
--- a/service
+++ b/service
@@ -3,6 +3,8 @@ Description=Python software for USB Wireless WeatherStations
[Service]
ExecStart=/usr/bin/pywws-livelog /var/lib/pywws
+RestartSec=120
+Restart=on-failure
[Install]
WantedBy=multi-user.target