summaryrefslogtreecommitdiff
path: root/debian/soledad-server.postinst
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-12-23 13:27:46 -0200
committerdrebs <drebs@leap.se>2016-12-23 16:02:33 -0200
commitf863ac6135e8c0f1190ad2648db2ef2448bf1372 (patch)
tree4124d37fb81ae64bcec4b35da6374b11bced1be7 /debian/soledad-server.postinst
parent156fc02779dcd11b95184f98faca08b7ee5343bb (diff)
[pkg] use systemd in debian package
Diffstat (limited to 'debian/soledad-server.postinst')
-rw-r--r--debian/soledad-server.postinst5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/soledad-server.postinst b/debian/soledad-server.postinst
index 0f46caf6..f7dadaed 100644
--- a/debian/soledad-server.postinst
+++ b/debian/soledad-server.postinst
@@ -26,5 +26,6 @@ if [ ! $RET -eq 0 ]; then
adduser --system soledad-admin --no-create-home --home /srv/leap/ --ingroup soledad
fi
-
-invoke-rc.d soledad-server start
+# update systemd and start service
+systemctl --system daemon-reload >/dev/null || true
+deb-systemd-invoke start soledad-server.service >/dev/null || true