From: Riccardo S. <r.s...@gm...> - 2016-11-10 18:37:16
|
The John Baker replay worked! This is my motion.service: [Unit] Description=Run motion After=network.target [Service] Type=forking PIDFile=/home/pi/motion/motion.pid ExecStart=/usr/bin/motion [Install] WantedBy=multi-user.target I suppouse the problem was due to confusing motion.service file name, in fact at /etc/init.d there was the motion shell startup script for the old rc.d system. So i didn't know what happened when i run systemctl enable/start motion. Thank for your help 2016-11-10 18:38 GMT+01:00 John Baker <jb...@dr...>: > Not sure how it works. Runs in the background. > > > > On Thu, Nov 10, 2016, at 03:26 PM, Colin Law wrote: > > On 10 November 2016 at 09:01, John Baker <jb...@dr...> wrote: > > > > > > > > [jbaker@pi ~]$ cat /usr/lib/systemd/system/cameras-motion.service > > > [Unit] > > > Description=Run motion > > > After=network.target > > > > > > [Service] > > > Type=forking > > > PIDFile=/var/run/motion/motion.pid > > > ExecStart=/usr/local/bin/motion -c /usr/local/etc/motion/motion.conf > > > > > > > By this do you mean to say that the process started by /usr/bin/motion > > will > > fork another process and that motion itself will then terminate? > > > > > > > > > [Install] > > > WantedBy=multi-user.target > > > > > > And in motion.conf: > > > > > > daemon on > > > > > > > > > Perhaps with daemon on the main process does die. I don't know. > > > > Colin > > ------------------------------------------------------------ > ------------------ > > Developer Access Program for Intel Xeon Phi Processors > > Access to Intel Xeon Phi processor-based developer platforms. > > With one year of Intel Parallel Studio XE. > > Training and support from Colfax. > > Order your platform today. http://sdm.link/xeonphi > > _______________________________________________ > > Motion-user mailing list > > Mot...@li... > > https://lists.sourceforge.net/lists/listinfo/motion-user > > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > |