We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 472c94b commit 18b56c0Copy full SHA for 18b56c0
DEBIAN/postinst
@@ -1,4 +1,4 @@
1
-#! /bin/bash -ex
+#! /bin/bash -e
2
echo "Running sg-control postinst in $(pwd)"
3
SG=/opt/sensorgnome # would be nice to derive that from some env var...
4
@@ -29,4 +29,11 @@ for U in sg-control; do
29
deb-systemd-helper update-state $U >/dev/null || true
30
fi
31
32
+
33
+ # Restart service, if it is running
34
+ systemctl daemon-reload
35
+ if systemctl is-active --quiet $U.service; then
36
+ echo "Restarting $U.service"
37
+ systemctl restart $U.service
38
+ fi
39
done
0 commit comments