Eric
Debian on Pogoplug Oxnas CPU - how to start Motion on boot October 19, 2013 11:35PM |
Re: Debian on Pogoplug Oxnas CPU - how to start Motion on boot October 20, 2013 03:50AM |
Registered: 12 years ago Posts: 218 |
Eric
Re: Debian on Pogoplug Oxnas CPU - how to start Motion on boot October 20, 2013 12:57PM |
#!/bin/sh -e # # /etc/init.d/motion: Start the motion detection # ### BEGIN INIT INFO # Provides: motion # Required-Start: $local_fs $syslog $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start Motion detection # Description: loads motion and assigns privileges ### END INIT INFO # Ported to new debian way using sh and /lib/lsb/init-functions # by Angel Carpintero <ack@telefonica.net> # Modified by : Juan Angulo Moreno <juan@apuntale.com> # Eddy Petrisor <eddy.petrisor@gmail.com> # ArAge <ArAge@gmx.co.uk> NAME=motion PATH_BIN=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/bin/motion PIDFILE=/var/run/$NAME.pid DEFAULTS=/etc/default/$NAME DESC="motion detection daemon" ENV="env -i LANG=C PATH=$PATH_BIN" . /lib/lsb/init-functions test -x $DAEMON || exit 0 RET=0 [ -r "$DEFAULTS" ] && . "$DEFAULTS" || start_motion_daemon=yes check_daemon_enabled () { if [ "$start_motion_daemon" = "yes" ] ; then return 0 else log_warning_msg "Not starting $NAME daemon, disabled via /etc/default/$$ return 1 fi }
Re: Debian on Pogoplug Oxnas CPU - how to start Motion on boot October 20, 2013 01:08PM |
Registered: 12 years ago Posts: 218 |
Eric
Re: Debian on Pogoplug Oxnas CPU - how to start Motion on boot October 21, 2013 12:12AM |
Not starting motion daemon, disabled via /etc/default/motion ... (warning).
# set to 'yes' to enable the motion daemon start_motion_daemon=no
Re: Debian on Pogoplug Oxnas CPU - how to start Motion on boot October 21, 2013 03:27PM |
Registered: 12 years ago Posts: 218 |