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
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