2023-01-04 14:40:54 +00:00
|
|
|
MANDATORY-cron = true
|
2022-07-08 17:46:22 +00:00
|
|
|
|
|
|
|
start-cron:
|
2023-01-04 14:40:54 +00:00
|
|
|
@- echo "\n### starting..."
|
|
|
|
@- $(foreach host,$(DEPLOY_HOSTS), \
|
|
|
|
echo "$(host)"; \
|
2023-01-04 14:44:27 +00:00
|
|
|
ssh $(SSH_USER)@$(host) 'crontab -l | sed "/^#make-deploy-cron:$(DEPLOY_NAME)/,+1 d" | { cat; echo "#ck-deploy-cron:$(DEPLOY_NAME)"; cat $(DEPLOY_PATH)/$(DEPLOY_NAME)/crontab"; } | crontab -'; \
|
2023-01-04 14:40:54 +00:00
|
|
|
)
|
2023-01-04 14:28:29 +00:00
|
|
|
|
2022-07-08 17:46:22 +00:00
|
|
|
stop-cron:
|
2023-01-04 14:40:54 +00:00
|
|
|
@- echo "\n### stopping ..."
|
|
|
|
@- $(foreach host,$(DEPLOY_HOSTS), \
|
|
|
|
echo "$(host)"; \
|
|
|
|
ssh $(SSH_USER)@$(host) 'crontab -l | sed "/^#make-deploy-cron:$(DEPLOY_NAME)/,+1 d" | crontab -'; \
|
|
|
|
)
|
2022-07-08 17:46:22 +00:00
|
|
|
|
2023-01-04 14:42:44 +00:00
|
|
|
pull-cron:
|
|
|
|
#nop
|