added systemd files
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Docker image and container update
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/root/docker/docker-updater
|
||||
ExecStart=/usr/bin/python3 /root/docker/docker-updater/update.py
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Update docker daily
|
||||
|
||||
[Timer]
|
||||
Unit=docker-updater.service
|
||||
OnCalendar=daily
|
||||
RandomizedDelaySec=1h
|
||||
OnBootSec=2min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user