package script

This commit is contained in:
Christien Rioux 2023-07-16 17:46:07 -04:00
parent 7d40735eec
commit aeb8477747
2 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,8 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon
if [ -d /run/systemd/system ]; then if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true systemctl --system daemon-reload >/dev/null || true
echo "Veilid headless node is now installed. To start the service run: systemctl enable --now veilid-server.service" echo "Veilid headless node is now installed. To enable the service run: systemctl enable --now veilid-server.service"
# Restart if it is enabled already
deb-systemd-invoke restart 'veilid-server.service' >/dev/null || true
fi fi
fi fi

View File

@ -4,3 +4,4 @@ set -e
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop 'veilid-server.service' >/dev/null || true deb-systemd-invoke stop 'veilid-server.service' >/dev/null || true
fi fi