summarylogtreecommitdiffstats
path: root/watchghost.install
diff options
context:
space:
mode:
authorArthur Vuillard2016-11-13 22:19:12 +0100
committerArthur Vuillard2016-11-13 22:19:12 +0100
commit0b708ec4335360ece034d7123c4ccb46c743223a (patch)
treeea59048aaea4de0da1ae5a8ccd9c97cc61ce04e5 /watchghost.install
parent6d9fa3a8a6e9082f15117230aae55db75000ce08 (diff)
downloadaur-0b708ec4335360ece034d7123c4ccb46c743223a.tar.gz
backup epoc and restart
Diffstat (limited to 'watchghost.install')
-rw-r--r--watchghost.install5
1 files changed, 5 insertions, 0 deletions
diff --git a/watchghost.install b/watchghost.install
index f03d211ce3d3..fce554dae603 100644
--- a/watchghost.install
+++ b/watchghost.install
@@ -6,6 +6,11 @@ post_install() {
post_upgrade() {
systemd-sysusers watchghost.conf
systemctl daemon-reload
+ systemctl is-active watchghost
+ active=$?
+ if [ $active -eq 0 ] ; then
+ systemctl restart watchghost
+ fi
}
pre_remove() {