From 21fc7c0292002448b0f5f1bf117d76ff85410ebd Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Fri, 5 Aug 2016 14:30:22 +0200 Subject: add enable and disable systemd service --- debian/vyatta-cfg.postinst.in | 1 + debian/vyatta-cfg.postrm.in | 1 + 2 files changed, 2 insertions(+) (limited to 'debian') 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 -- cgit v1.2.3