introduce image-updater

This commit is contained in:
iceBear67
2026-07-09 00:04:25 +08:00
parent 9b42945820
commit be27cdba97
3 changed files with 18 additions and 6 deletions
-6
View File
@@ -4,12 +4,6 @@ depend() {
need docker tsdns
}
start_pre() {
until docker pull git.sfclub.cc/cloud/workspace-image:latest; do
sleep 10
done
}
command="/usr/bin/bubble"
command_args="-config /daemon/config.yaml 2>&1"
pidfile="/run/${RC_SVCNAME}.pid"
+12
View File
@@ -0,0 +1,12 @@
#!/sbin/openrc-run
depend() {
need docker
}
supervisor="supervise-daemon"
restart_max=5
restart_delay=10
command="/usr/bin/image-updater"
pidfile="/run/${RC_SVCNAME}.pid"
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
while true; do
docker pull git.sfclub.cc/cloud/workspace-image:latest
sleep 3600
done