Motion - Feature Request 2007x 02x 06x 231543

Feature Request: noninteractive start motion as service.

Hi! I am sorry for my english. I have changed function start() in /etc/rc.d/init.d/motion for run motion with non-priviledged UID and special umask. Interactive start|restart motion work nice, but non-interactive(i.e. after reboot) does not start motion. Is tty required for start motion as service? Below is apropriate part of /etc/rc.d/init.d/motion:

...
start() {
        echo -n $"Starting $prog: "
        /usr/bin/sudo -u motion /bin/bash -c "umask 0007 ; exec $motion"
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch /var/lock/subsys/motion
        return $RETVAL
}
...

Motion build as rpm package from src.rpm.


Environment

Motion version: 3.2.7
ffmpeg version: 0.4.9-0.25.20061030.lvn6
Shared libraries: ffmpeg, mysql, postgresql
Server OS: Fedora Core 6

-- EuvgenyShkrigunov - 06 Feb 2007

Follow up

Hi Euvgeny,

Well first at all that is not a bug , because you changed motion init.d script wink

So that is a feature request or support question , anyway ... please try to send more information about the problem you have when system boots

maybe the problem is that your device kernel module is not ready or the permission for is not set yet.

-- AngelCarpintero - 07 Feb 2007

Fix record

Topic revision: r3 - 30 Mar 2008, AngelCarpintero
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.