mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +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"
|
||||
|
||||
PIDFILE=/var/run/tap-vsockd.pid
|
||||
start-stop-daemon --start --quiet \
|
||||
start-stop-daemon --start \
|
||||
--exec /sbin/tap-vsockd \
|
||||
--background \
|
||||
--pidfile ${PIDFILE} \
|
||||
-- \
|
||||
--daemon \
|
||||
--pidfile "${PIDFILE}" \
|
||||
--listen
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user