summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-08-05 14:30:22 +0200
committerKim Hagen <kim.sidney@gmail.com>2016-08-05 14:30:22 +0200
commit21fc7c0292002448b0f5f1bf117d76ff85410ebd (patch)
treea334ea79dac9c6885a8dbd0a70e298bfabfb30ef /debian
parente29b8bef221b5a04be0f6509460b5cc15d114812 (diff)
downloadvyatta-cfg-21fc7c0292002448b0f5f1bf117d76ff85410ebd.tar.gz
vyatta-cfg-21fc7c0292002448b0f5f1bf117d76ff85410ebd.zip
add enable and disable systemd service
Diffstat (limited to 'debian')
-rw-r--r--debian/vyatta-cfg.postinst.in1
-rw-r--r--debian/vyatta-cfg.postrm.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/debian/vyatta-cfg.postinst.in b/debian/vyatta-cfg.postinst.in
index 26359e1..fc9b07b 100644
--- a/debian/vyatta-cfg.postinst.in
+++ b/debian/vyatta-cfg.postinst.in
@@ -17,6 +17,7 @@ for dir in $sysconfdir/config $prefix/config; do
done
update-rc.d vyatta-router defaults 90 >/dev/null
+systemctl enable vyatta-router.service >/dev/null
# capability stuff
for bin in my_cli_bin my_cli_shell_api; do
diff --git a/debian/vyatta-cfg.postrm.in b/debian/vyatta-cfg.postrm.in
index 2c33121..b184f20 100644
--- a/debian/vyatta-cfg.postrm.in
+++ b/debian/vyatta-cfg.postrm.in
@@ -2,5 +2,6 @@
if [ "$1" = "purge" ]; then
update-rc.d vyatta-router remove >/dev/null || exit $?
+ systemctl disable vyatta-router.service >/dev/null || exit $?
fi