mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 19:05:37 +00:00
tap-vsockd: make sure the service daemonizes properly
This tells start-stop-daemon to run tap-vsockd as a daemon, and tells tap-vsockd not to daemonize itself. This seems to work more reliably than when tap-vsockd self-daemonizes. Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
parent
e1ca7e5ab1
commit
e99d36784b
@ -21,11 +21,11 @@ start()
|
|||||||
ebegin "Starting VPN proxy"
|
ebegin "Starting VPN proxy"
|
||||||
|
|
||||||
PIDFILE=/var/run/tap-vsockd.pid
|
PIDFILE=/var/run/tap-vsockd.pid
|
||||||
start-stop-daemon --start --quiet \
|
start-stop-daemon --start \
|
||||||
--exec /sbin/tap-vsockd \
|
--exec /sbin/tap-vsockd \
|
||||||
|
--background \
|
||||||
--pidfile ${PIDFILE} \
|
--pidfile ${PIDFILE} \
|
||||||
-- \
|
-- \
|
||||||
--daemon \
|
|
||||||
--pidfile "${PIDFILE}" \
|
--pidfile "${PIDFILE}" \
|
||||||
--listen
|
--listen
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user