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
usr/bin/
usr/lib/*/taler/

View File

@ -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."

View File

@ -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)