mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-06 09:13:52 +00:00
clean up transfused startup scripts
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
9ed8b91027
commit
2a029eca74
@ -15,7 +15,13 @@ start()
|
|||||||
|
|
||||||
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/transfused.pid
|
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/transfused.pid
|
||||||
|
|
||||||
/sbin/transfused -p "${PIDFILE}" &
|
start-stop-daemon --start --quiet \
|
||||||
|
--background \
|
||||||
|
--exec /sbin/transfused \
|
||||||
|
--pidfile ${PIDFILE} \
|
||||||
|
-- -p "${PIDFILE}"
|
||||||
|
|
||||||
|
eend $? "Failed to start transfused"
|
||||||
}
|
}
|
||||||
|
|
||||||
stop()
|
stop()
|
||||||
@ -28,5 +34,6 @@ stop()
|
|||||||
|
|
||||||
start-stop-daemon --stop --quiet \
|
start-stop-daemon --stop --quiet \
|
||||||
--pidfile "${PIDFILE}"
|
--pidfile "${PIDFILE}"
|
||||||
|
|
||||||
eend $? "Failed to stop transfused"
|
eend $? "Failed to stop transfused"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user