--- /etc/init.d/xdm.orig 2011-02-25 10:11:51.000000000 +1100 +++ /etc/init.d/xdm 2011-02-25 10:40:02.000000000 +1100 @@ -95,6 +95,15 @@ PIDFILE=/var/run/lxdm.pid START_STOP_ARGS="--background" ;; + nodm) + EXE=/usr/sbin/nodm + PIDFILE=/var/run/nodm.pid + START_STOP_ARGS="--background --make-pidfile" + + source /etc/nodm.conf + export NODM_USER NODM_FIRST_VT NODM_X_OPTIONS \ + NODM_MIN_SESSION_TIME NODM_XSESSION NODM_XINIT + ;; *) # first find out if there is such executable EXE="$(which ${MY_XDM} 2>/dev/null)"