/etc/init.d/motion: 2: /etc/default/motion: logfile: not found
Question
hello, i am getting an error while starting motion on a rpi.
/etc/init.d/motion: 2: /etc/default/motion: logfile: not found
motion file
start_motion_daemon=yes
logfile /var/log/motion.log
target_dir /var/run/motion
vi /etc/motion/motion.conf
# Rename this distribution example file to motion.conf
#
# This config file was generated by motion 3.2.12
############################################################
# Daemon
############################################################
# Start in daemon (background) mode and release terminal (default: off)
#daemon off
daemon on
# File to store the process ID, also called pid file. (default: not defined)
process_id_file /var/run/motion/motion.pid
############################################################
# Basic Setup Mode
############################################################
# Start in Setup-Mode, daemon disabled. (default: off)
setup_mode off
vi /etc/motion.conf
############################################################
# Daemon
############################################################
# Start in daemon (background) mode and release terminal (default: off)
daemon on
# File to store the process ID, also called pid file. (default: not defined)
process_id_file /var/run/motion/motion.pid
############################################################
# Basic Setup Mode
############################################################
# Start in Setup-Mode, daemon disabled. (default: off)
setup_mode off
# Use a file to save logs messages, if not defined stderr and syslog is used. (default: not defined)
logfile /var/log/motion.log
# ls -l /var/log/motion.log
-rw-r--r-- 1 root root 0 Mar 1 12:27 /var/log/motion.log
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
|
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
rpi debian |
--
ArnaudCognard - 13 Apr 2015
Answer
have you set log file in /etc/motion/motion.conf ?
You start motion as motion ... have you set logfile as writable from motion ?
--
EmilioDefranco 20 Apr 2015