initial
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@6249 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
16db307e6f
commit
9bd3255e7d
20
Viitor_motion/etc/init/motion.conf
Normal file
20
Viitor_motion/etc/init/motion.conf
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user