7 NODM_XSESSION
=/etc
/X11
/Xsession
9 NODM_X_OPTIONS
="-nolisten tcp"
11 NODM_MIN_SESSION_TIME
=60
14 [ -r /etc
/default
/nodm
] && .
/etc
/default
/nodm
16 export NODM_XSESSION NODM_X_OPTIONS NODM_USER NODM_MIN_SESSION_TIME NODM_FIRST_VT NODM_X_TIMEOUT
19 printf "Starting nodm: "
20 start-stop-daemon
-S -q -p /var
/run
/nodm.pid
--exec /usr
/sbin
/nodm
-b -m -S -- ${NODM_OPTIONS}
21 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
24 printf "Stopping nodm: "
25 start-stop-daemon
-K -q -p /var
/run
/nodm.pid
26 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
45 echo "Usage: $0 {start|stop|restart}"