1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/sbin/openrc-run
cidfile="/run/${RC_SVCNAME}.cid"
pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
}
start_pre() {
/bin/rm -f "${pidfile}" "${cidfile}"
}
start() {
/usr/bin/podman run \
--conmon-pidfile "${pidfile}" \
--cidfile "${cidfile}" \
--cgroups no-conmon \
--name "${RC_SVCNAME}" \
--restart=on-failure:5 \
-d \
${OPT_ARGS} ${RC_SVCNAME} ${ARGS}
}
stop() {
/usr/bin/podman stop --ignore --cidfile "${cidfile}" -t 10
}
stop_post() {
/usr/bin/podman rm --ignore -f --cidfile "${cidfile}"
}