harfbuzz: security bump to version 1.4.4
[buildroot-gz.git] / package / nodm / S90nodm
bloba966e839f5099245805d01e75ba509f416361332
1 #!/bin/sh
3 # Starts nodm
6 NODM_FIRST_VT=7
7 NODM_XSESSION=/etc/X11/Xsession
8 NODM_OPTIONS=
9 NODM_X_OPTIONS="-nolisten tcp"
10 NODM_USER=root
11 NODM_MIN_SESSION_TIME=60
12 NODM_X_TIMEOUT=300
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
18 start() {
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"
23 stop() {
24 printf "Stopping nodm: "
25 start-stop-daemon -K -q -p /var/run/nodm.pid
26 [ $? = 0 ] && echo "OK" || echo "FAIL"
28 restart() {
29 stop
30 sleep 1
31 start
34 case "$1" in
35 start)
36 start
38 stop)
39 stop
41 restart|reload)
42 restart
45 echo "Usage: $0 {start|stop|restart}"
46 exit 1
47 esac
49 exit $?