From: Thierry Parmentelat Date: Tue, 2 Oct 2018 19:32:40 +0000 (+0200) Subject: tweak make sync target, overdue after some cleanup (sfa-cm) and move to systemctl X-Git-Tag: sfa-4.0-2~7 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=f931ac7f2c8a7cea149f231c46e85085b915e340 tweak make sync target, overdue after some cleanup (sfa-cm) and move to systemctl --- diff --git a/Makefile b/Makefile index 59a2d220..485f10a3 100644 --- a/Makefile +++ b/Makefile @@ -187,7 +187,7 @@ RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) --no-owner $(RSYNC_EXCLUDES) CLIENTS = $(shell ls clientbin/*.py) -BINS = ./config/sfa-config-tty ./config/gen-sfa-cm-config.py ./systemd/sfa-setup.sh \ +BINS = ./config/sfa-config-tty ./systemd/sfa-setup.sh \ ./sfa/server/sfa-start.py \ ./clientbin/sfaadmin.py \ $(CLIENTS) @@ -211,7 +211,8 @@ synctest: synccheck +$(RSYNC) ./tests/ $(SSHURL)/root/tests-sfa syncrestart: synccheck -$(SSHCOMMAND) systemctl --system daemon-reload - $(SSHCOMMAND) service sfa restart + $(SSHCOMMAND) systemctl restart sfa-db + $(SSHCOMMAND) systemctl restart sfa-aggregate syncmig: +$(RSYNC) ./sfa/storage/migrations $(SSHURL)/usr/share/sfa/