From 2df6be1f400911a5bd143b5c0eb0a8473c901f81 Mon Sep 17 00:00:00 2001 From: MS Date: Mon, 1 Mar 2021 11:42:52 +0100 Subject: install .service after .timer --- bin/taler-deployment | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/taler-deployment') diff --git a/bin/taler-deployment b/bin/taler-deployment index 8f03c8e..1bb85df 100755 --- 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", -- cgit v1.2.3