From 26899fa911bb7e882d31c94ce970571be00d111d Mon Sep 17 00:00:00 2001 From: David Sheets Date: Thu, 24 Dec 2015 11:19:50 +0000 Subject: [PATCH] Include the etc/init.d/ script for 9pudfuse This was accidentally not committed as .gitignore is not expressive enough --- alpine/packages/9pudfuse/etc/init.d/9pudfuse | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 alpine/packages/9pudfuse/etc/init.d/9pudfuse diff --git a/alpine/packages/9pudfuse/etc/init.d/9pudfuse b/alpine/packages/9pudfuse/etc/init.d/9pudfuse new file mode 100755 index 000000000..85034479c --- /dev/null +++ b/alpine/packages/9pudfuse/etc/init.d/9pudfuse @@ -0,0 +1,33 @@ +#!/sbin/openrc-run + +description="9p socket fuse proxy server" + +depend() +{ + need 9pinit +} + +start() +{ + ebegin "Starting FUSE socket passthrough" + + [ -n "${PIDFILE}" ] || PIDFILE=/var/run/9pudfuse.pid + +# start-stop-daemon --start --quiet \ +# --exec /sbin/9pudfuse \ +# --pidfile "${PIDFILE}" \ +# -- -path /Transfuse +# eend $? "Failed to start 9pudfuse" + OCAMLRUNPARAM=b /sbin/9pudfuse & +} + +stop() +{ + ebegin "Stopping FUSE socket passthrough" + + [ -n "${PIDFILE}" ] || PIDFILE=/var/run/9pudfuse.pid + + start-stop-daemon --stop --quiet \ + --pidfile "${PIDFILE}" + eend $? "Failed to stop 9pudfuse" +}