Motion - Support Question 2015x 04x 13x 222017

/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
Topic revision: r4 - 21 Apr 2015, ArnaudCognard
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.