diff options
Diffstat (limited to 'media-video/motion/files')
-rw-r--r-- | media-video/motion/files/motion.confd-r4 | 28 | ||||
-rw-r--r-- | media-video/motion/files/motion.initd-r4 | 30 |
2 files changed, 0 insertions, 58 deletions
diff --git a/media-video/motion/files/motion.confd-r4 b/media-video/motion/files/motion.confd-r4 deleted file mode 100644 index 8a200d14928c..000000000000 --- a/media-video/motion/files/motion.confd-r4 +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 -# -# Motion OpenRC conf.d file -# All settings are optional - -# Set the user and group under which motion will be run -#MOTION_USER="motion" -#MOTION_GROUP="motion" - -#Set motion's config file: -#MOTION_CONFIGFILE="/etc/motion/motion.conf" - -#Set motion's log file. Leave unset for syslog: -#MOTION_LOGFILE="/var/log/motion/motion.log" - -#Set log type: 1-9 for COR, STR, ENC, NET, DBL, EVT, TRK, VID, ALL -#MOTION_LOGTYPE="9" - -#Set log level: 1-9 for EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL -#MOTION_LOGLEVEL="6" - -#Set a default dir where motion places its output -#MOTION_DIR="/var/lib/motion" - -#Set the umask for the output files, for additonal security -#MOTION_UMASK="007" - diff --git a/media-video/motion/files/motion.initd-r4 b/media-video/motion/files/motion.initd-r4 deleted file mode 100644 index 30d5e25cb08e..000000000000 --- a/media-video/motion/files/motion.initd-r4 +++ /dev/null @@ -1,30 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -: ${MOTION_USER:="motion"} -: ${MOTION_GROUP:="motion"} - -[ "${MOTION_UMASK}" ] && umask="${MOTION_UMASK}" -[ "${MOTION_CONFIGFILE}" ] && command_args="-c ${MOTION_CONFIGFILE}" -[ "${MOTION_LOGFILE}" ] && command_args="${command_args} -l ${MOTION_LOGFILE}" -[ "${MOTION_LOGTYPE}" ] && command_args="${command_args} -k ${MOTION_LOGTYPE}" -[ "${MOTION_LOGLEVEL}" ] && command_args="${command_args} -d ${MOTION_LOGLEVEL}" - -command=/usr/bin/motion -command_user="${MOTION_USER}:${MOTION_GROUP}" - -start_pre() { - if [ "${MOTION_DIR}" ] ; then - mkdir -p "${MOTION_DIR}" - checkpath -d -o "${MOTION_USER}" "${MOTION_DIR}" - directory="${MOTION_DIR}" - fi - if [ "${MOTION_LOGFILE}" ] ; then - local LOGFILE=${MOTION_LOGFILE##*/} - local LOGDIR=${MOTION_LOGFILE%$LOGFILE} - mkdir -p "${LOGDIR}" - checkpath -d -o "${MOTION_USER}" "${LOGDIR}" - fi -} - |