added timer services to run every 20 minutes
This commit is contained in:
parent
ae56751c8d
commit
cccd1994b5
@ -8,6 +8,9 @@
|
|||||||
|
|
||||||
##config file: server specifics
|
##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
|
||||||
|
8
demo_mover/systemd/demo_mover.service
Normal file
8
demo_mover/systemd/demo_mover.service
Normal 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
|
9
demo_mover/systemd/demo_mover.timer
Normal file
9
demo_mover/systemd/demo_mover.timer
Normal 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
|
Loading…
Reference in New Issue
Block a user