added systemd services
This commit is contained in:
parent
b605f8e1b8
commit
3510f53177
10
fastdl_sync/systemd/r2_bucket_rclone.service
Normal file
10
fastdl_sync/systemd/r2_bucket_rclone.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Rclones to R2 bucket every 10 minutes
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=gameservers
|
||||
Group=gameservers
|
||||
WorkingDirectory=/home/gameservers/fastdl_sync
|
||||
ExecStartPre=/usr/bin/python3 /home/gameservers/fastdl_sync/run-docker-cp.py
|
||||
ExecStart=/home/gameservers/fastdl_sync/r2_update.sh
|
9
fastdl_sync/systemd/r2_bucket_rclone.timer
Normal file
9
fastdl_sync/systemd/r2_bucket_rclone.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=rclones new content every 10 minutes
|
||||
Requires=r2_bucket_rclone.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:0,10,20,30,40,50
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user