Merge pull request #189 from dsheets/transfused-clean-up-tmp

transfused: clean up /tmp
This commit is contained in:
Justin Cormack 2016-06-08 15:22:48 +01:00
commit fb87dcc359

View File

@ -7,17 +7,18 @@ start()
ebegin "Starting FUSE socket passthrough" ebegin "Starting FUSE socket passthrough"
mkdir -p /Mac mkdir -p /Mac
rm -rf /tmp/* /tmp/.*
PIDFILE=/var/run/transfused.pid PIDFILE=/var/run/transfused.pid
STARTUP_LOGFILE=/var/transfused_start.log STARTUP_LOGFILE=/var/transfused_start.log
start-stop-daemon --start --quiet \ start-stop-daemon --start --quiet \
--background \ --background \
--exec /sbin/transfused \ --exec /sbin/transfused \
--pidfile ${PIDFILE} \ --pidfile ${PIDFILE} \
-- \ -- \
-p "${PIDFILE}" \ -p "${PIDFILE}" \
-l "${STARTUP_LOGFILE}" -l "${STARTUP_LOGFILE}"
ewaitfile 2 ${PIDFILE} ewaitfile 2 ${PIDFILE}