mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-17 02:30:29 +00:00
34 lines
633 B
Plaintext
Executable File
34 lines
633 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="9p socket proxy client"
|
|
|
|
depend()
|
|
{
|
|
need 9pinit
|
|
}
|
|
|
|
start()
|
|
{
|
|
ebegin "Starting docker socket passthrough"
|
|
|
|
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/9pudc.pid
|
|
|
|
# start-stop-daemon --start --quiet \
|
|
# --exec /sbin/9pudc \
|
|
# --pidfile "${PIDFILE}" \
|
|
# -- -path /Socket -sock /var/run/docker.sock
|
|
# eend $? "Failed to start 9pudc"
|
|
/sbin/9pudc -path /Socket -sock /var/run/docker.sock -detach &
|
|
}
|
|
|
|
stop()
|
|
{
|
|
ebegin "Stopping docker socket passthrough"
|
|
|
|
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/9pudc.pid
|
|
|
|
start-stop-daemon --stop --quiet \
|
|
--pidfile "${PIDFILE}"
|
|
eend $? "Failed to stop 9pudc"
|
|
}
|