Add chill-send-sms systemd service and timer
Introduced new systemd `chill-send-sms@.service` and `chill-send-sms@.timer` to schedule and execute SMS sending feature. Updated Ansible tasks to manage these units.
This commit is contained in:
@@ -72,6 +72,8 @@
|
|||||||
loop:
|
loop:
|
||||||
- chill-cronjob@.service
|
- chill-cronjob@.service
|
||||||
- chill-cronjob@.timer
|
- chill-cronjob@.timer
|
||||||
|
- chill-send-sms@.service
|
||||||
|
- chill-send-sms@.timer
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: file
|
loop_var: file
|
||||||
|
|
||||||
|
|||||||
9
templates/systemd/chill-send-sms@.service
Normal file
9
templates/systemd/chill-send-sms@.service
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Execute send-short-messages for chill with environment %i
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User={{ as_user }}
|
||||||
|
ExecStart=/usr/bin/docker compose --file {{ install_dir }}/%i/compose.yaml run cron bin/console chill:calendar:send-short-messages
|
||||||
|
Type=simple
|
||||||
|
# execute maximum 30 minutes
|
||||||
|
RuntimeMaxSec=1800
|
||||||
10
templates/systemd/chill-send-sms@.timer
Normal file
10
templates/systemd/chill-send-sms@.timer
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run chill send-sms
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
Unit=chill-send-sms@%i.service
|
||||||
|
OnCalendar=*-*-* 7-18:0:00
|
||||||
|
RandomizedDelaySec=60
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user