From efbe51df731eaefa74ceab95feb208af09c51394 Mon Sep 17 00:00:00 2001 From: TC Date: Fri, 14 Jul 2023 18:50:06 -0500 Subject: [PATCH 1/2] Changed deb install to not enable-start the service --- package/debian/veilid-server/DEBIAN/postinst | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/package/debian/veilid-server/DEBIAN/postinst b/package/debian/veilid-server/DEBIAN/postinst index ae2a332d..2418910f 100755 --- a/package/debian/veilid-server/DEBIAN/postinst +++ b/package/debian/veilid-server/DEBIAN/postinst @@ -24,24 +24,8 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask 'veilid-server.service' >/dev/null || true - # was-enabled defaults to true, so new installations run enable. - if deb-systemd-helper --quiet was-enabled 'veilid-server.service'; then - # Enables the unit on first installation, creates new - # symlinks on upgrades if the unit file has changed. - deb-systemd-helper enable 'veilid-server.service' >/dev/null || true - else - # Update the statefile to add new symlinks (if any), which need to be - # cleaned up on purge. Also remove old symlinks. - deb-systemd-helper update-state 'veilid-server.service' >/dev/null || true - fi - if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true - if [ -n "$2" ]; then - _dh_action=restart - else - _dh_action=start - fi - deb-systemd-invoke $_dh_action 'veilid-server.service' >/dev/null || true + echo "\nVeilid headless node is now installed. To start the service run: systemctl enable --now veilid-server.service\n" fi fi From d18a1e3e285c6798fdbc47971d8d7bbced99f7bb Mon Sep 17 00:00:00 2001 From: TC Johnson Date: Fri, 14 Jul 2023 20:47:03 -0500 Subject: [PATCH 2/2] edit instruction to systemctl enable --- package/debian/veilid-server/DEBIAN/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/debian/veilid-server/DEBIAN/postinst b/package/debian/veilid-server/DEBIAN/postinst index 2418910f..e51b5d03 100755 --- a/package/debian/veilid-server/DEBIAN/postinst +++ b/package/debian/veilid-server/DEBIAN/postinst @@ -26,6 +26,6 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true - echo "\nVeilid headless node is now installed. To start the service run: systemctl enable --now veilid-server.service\n" + echo "Veilid headless node is now installed. To start the service run: systemctl enable --now veilid-server.service" fi fi