blob: 2d491162a7494129c1e83372606f64503f0aa81c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/sbin/runscript
depend() {
need local
}
start() {
export NODM_USER NODM_FIRST_VT NODM_X_OPTIONS \
NODM_MIN_SESSION_TIME NODM_XSESSION
ebegin "Starting nodm"
start-stop-daemon --start --quiet --background --make-pidfile \
--pidfile /var/run/nodm.pid --exec /usr/sbin/nodm \
-- ${NODM_OPTS}
eend $?
}
stop () {
ebegin "Stopping nodm"
start-stop-daemon --stop --quiet --pidfile /var/run/nodm.pid
eend $?
}
|