From 9bd3255e7d8e9221b310a03df732f86454b8b936 Mon Sep 17 00:00:00 2001 From: segler Date: Fri, 14 Oct 2011 10:44:02 +0000 Subject: [PATCH] initial git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@6249 504e572c-2e33-0410-9681-be2bf7408885 --- Viitor_motion/etc/init/motion.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Viitor_motion/etc/init/motion.conf diff --git a/Viitor_motion/etc/init/motion.conf b/Viitor_motion/etc/init/motion.conf new file mode 100644 index 0000000..6a96191 --- /dev/null +++ b/Viitor_motion/etc/init/motion.conf @@ -0,0 +1,20 @@ +description "Start the motion server" +author "Michael Freitag " +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 +