added timer services to run every 20 minutes

This commit is contained in:
Christian 2021-02-03 20:08:20 +01:00
parent ae56751c8d
commit cccd1994b5
3 changed files with 22 additions and 2 deletions

View File

@ -8,6 +8,9 @@
##config file: server specifics
python3 demo_mover.py config.json
##python3 demo_mover.py config.json
##should be run with a .service triggered through a systemctl timer
##systemctl enable demo_mover.timer
##systemctl start demo_mover.timer
##logging: journalctl -f -u demo_mover.service
##logging: systemctl status demo_mover.service

View File

@ -0,0 +1,8 @@
[Unit]
Description=Moves demos from the local machine to remote destinations every 20 minutes
[Service]
Type=simple
User=gameservers
WorkingDirectory=/home/gameservers/demo_mover
ExecStart=/home/gameservers/demo_mover/run_demo_mover.sh

View File

@ -0,0 +1,9 @@
[Unit]
Description=Moves demos from the local machine to remote destinations every 20 minutes
Requires=demo_mover.service
[Timer]
OnCalendar=*-*-* *:0,20,40
[Install]
WantedBy=multi-user.target