21 lines
373 B
Plaintext
21 lines
373 B
Plaintext
|
description "Start the motion server"
|
||
|
author "Michael Freitag <Michael.Freitag@freitag-it.de>"
|
||
|
version 1.0
|
||
|
emits none special
|
||
|
|
||
|
start on (runlevel [345] and (started ifup))
|
||
|
stop on runlevel [0126]
|
||
|
|
||
|
console none
|
||
|
|
||
|
pre-start script
|
||
|
if [ ! -f /etc/motion/motion.conf ]; then
|
||
|
exit 10
|
||
|
fi
|
||
|
end script
|
||
|
|
||
|
#expect daemon
|
||
|
|
||
|
exec /usr/bin/motion -n -c /etc/motion/motion.conf
|
||
|
|