Media-video/motion-4.3.1 is unable to create its user PID folder in /var/run when using OpenRC. Manually creating the directory works but of course does not persist after a reboot. Mine runs under the user:group - “motion:motion”. It needs to create “/var/run/motion/motion.pid”. I posted this on Gentoo forums and user:netfab pointed out that whereas an earlier init file created the directory, the current one (init-r4) no longer does this. https://forums.gentoo.org/viewtopic-t-1118330-highlight-.html
I'll pick this up and update the ebuild to verify the existence of /var/run . In the mean time you can try to use the supervise-daemon use flag which does not require a pid file.
the fix will be to add the following two statements to the depend function 'need localmount" and "after bootmisc", in accordance with the suggestions in the wiki: https://wiki.gentoo.org/wiki/Handbook:Parts/Working/Initscripts#Controlling_the_order .
(In reply to Hans Fernhout from comment #2) > the fix will be to add the following two statements to the depend function > 'need localmount" and "after bootmisc", in accordance with the suggestions > in the wiki: > https://wiki.gentoo.org/wiki/Handbook:Parts/Working/ > Initscripts#Controlling_the_order . 4.3.2 is now the current version. Are you intending to add the fixes to that ebuild? Is there a current maintainer for the Motion ebuild? BTW Despite using Gentoo for many years I've rarely ever modified an ebuild. But unless somebody else has this, I'm happy to give it a go.
(In reply to chris lindley from comment #3) > (In reply to Hans Fernhout from comment #2) > > the fix will be to add the following two statements to the depend function > > 'need localmount" and "after bootmisc", in accordance with the suggestions > > in the wiki: > > https://wiki.gentoo.org/wiki/Handbook:Parts/Working/ > > Initscripts#Controlling_the_order . > > 4.3.2 is now the current version. Are you intending to add the fixes to that > ebuild? Is there a current maintainer for the Motion ebuild? Can you please confirm that adding "need localmount" and "after bootmisc" resolves ths issue for you? Thanks.
(In reply to Hans Fernhout from comment #4) > (In reply to chris lindley from comment #3) > > (In reply to Hans Fernhout from comment #2) > > > the fix will be to add the following two statements to the depend function > > > 'need localmount" and "after bootmisc", in accordance with the suggestions > > > in the wiki: > > > https://wiki.gentoo.org/wiki/Handbook:Parts/Working/ > > > Initscripts#Controlling_the_order . > > > > 4.3.2 is now the current version. Are you intending to add the fixes to that > > ebuild? Is there a current maintainer for the Motion ebuild? > > Can you please confirm that adding "need localmount" and "after bootmisc" > resolves ths issue for you? Thanks. I'm afraid that I switched to the "official" Docker image of this tool from the Gentoo build - a local string of shed robberies made me want a reliable CCTV system ;-) I will be able to check, however, I will only be able to do so in about a week's time. Thanks!
Okay, that'd be good. In any case 4.3.2 with this change is underway. I submitted the pull request yesterday. Waiting for it to be merged.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2b5ff207b1160749bc7287f8372dcfe783d8079 commit c2b5ff207b1160749bc7287f8372dcfe783d8079 Author: Johannes Willem Fernhout <hfern@fernhout.info> AuthorDate: 2020-12-08 18:23:18 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-12-15 07:18:02 +0000 media-video/motion: version bump to 4.3.2 Changes are: - version 4.3.2 has some bug fixes - init file updated with need localmount and after bootmisc - simplification of ebuild - supervise-deamon USE flag no longer used Closes: https://bugs.gentoo.org/752135 Closes: https://bugs.gentoo.org/739872 Signed-off-by: Johannes Willem Fernhout <hfern@fernhout.info> Closes: https://github.com/gentoo/gentoo/pull/18569 Signed-off-by: Joonas Niilola <juippis@gentoo.org> media-video/motion/Manifest | 1 + media-video/motion/files/motion.confd-r5 | 31 +++++++++++ media-video/motion/files/motion.initd-r5 | 37 +++++++++++++ media-video/motion/motion-4.3.2.ebuild | 89 ++++++++++++++++++++++++++++++++ 4 files changed, 158 insertions(+)