reload systemd after installing/deleting service files

This commit is contained in:
Christian Grothoff 2020-12-31 22:38:14 +01:00
parent 6b70f2e454
commit bfb81f635a
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,2 @@
etc/taler.conf etc/taler.conf
usr/bin/ usr/bin/
usr/lib/*/taler/

View File

@ -174,6 +174,8 @@ Restart=on-failure
ExecStart=/usr/bin/taler-exchange-aggregator -c /etc/taler.conf ExecStart=/usr/bin/taler-exchange-aggregator -c /etc/taler.conf
EOF EOF
systemctl daemon-reload
cp -f "${CONFIG_NEW}" "${CONFIG_FILE}" cp -f "${CONFIG_NEW}" "${CONFIG_FILE}"
echo " done." echo " done."

View File

@ -65,6 +65,12 @@ case "${1}" in
fi fi
rm -rf /var/log/taler/ /var/lib/taler /etc/default/taler 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) remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)