commit bfb81f635aef0056e5bef11aa9e0fd355c395b67 parent 6b70f2e45476c573da5d367734f964ded80659eb Author: Christian Grothoff <christian@grothoff.org> Date: Thu, 31 Dec 2020 22:38:14 +0100 reload systemd after installing/deleting service files Diffstat:
| M | debian/taler-exchange.install | | | 1 | - |
| M | debian/taler-exchange.postinst | | | 2 | ++ |
| M | debian/taler-exchange.postrm | | | 6 | ++++++ |
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/debian/taler-exchange.install b/debian/taler-exchange.install @@ -1,3 +1,2 @@ etc/taler.conf usr/bin/ -usr/lib/*/taler/ diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst @@ -174,6 +174,8 @@ Restart=on-failure ExecStart=/usr/bin/taler-exchange-aggregator -c /etc/taler.conf EOF + systemctl daemon-reload + cp -f "${CONFIG_NEW}" "${CONFIG_FILE}" echo " done." diff --git a/debian/taler-exchange.postrm b/debian/taler-exchange.postrm @@ -65,6 +65,12 @@ case "${1}" in fi rm -rf /var/log/taler/ /var/lib/taler /etc/default/taler + for X in httpd helper-rsa helper-eddsa wirewatch transfer + do + rm -f /etc/systemd/system/taler-exchange-${X}.service + done + systemctl daemon-reload + ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)