taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 2df6be1f400911a5bd143b5c0eb0a8473c901f81
parent 828f781f96efe6dfb0ce10dd023efa1e2ee3962d
Author: MS <ms@taler.net>
Date:   Mon,  1 Mar 2021 11:42:52 +0100

install .service after .timer

Diffstat:
Mbin/taler-deployment | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/bin/taler-deployment b/bin/taler-deployment @@ -626,6 +626,13 @@ def setup_service(systemd_unit): sc_path.mkdir(exist_ok=True,parents=True) sc_unit = Path.home() / "deployment" / "systemd-services" / systemd_unit copy(sc_unit, sc_path) + + # If a timer got just installed, the related service + # file needs to be installed now. + split_filename = systemd_unit.split(".") + if "timer" == split_filename[-1]: + copy(Path.home() / "deployment" / "systemd-services" / split_filename[0] + ".service", sc_path) + subprocess.run( [ "systemctl",