added systemd files
This commit is contained in:
1 parent
0061463e0f
commit
deb8a35304
2 files changed
+19
No files matched your search
@@ -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