diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2016-08-05 14:30:22 +0200 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2016-08-05 14:30:22 +0200 |
commit | 21fc7c0292002448b0f5f1bf117d76ff85410ebd (patch) | |
tree | a334ea79dac9c6885a8dbd0a70e298bfabfb30ef /debian | |
parent | e29b8bef221b5a04be0f6509460b5cc15d114812 (diff) | |
download | vyatta-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.in | 1 | ||||
-rw-r--r-- | debian/vyatta-cfg.postrm.in | 1 |
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 |