Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenRC and MotionEye
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
kenny_w
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2017
Posts: 83
Location: Toronto, Canada

PostPosted: Sun Nov 26, 2017 5:53 pm    Post subject: OpenRC and MotionEye Reply with quote

Hey everyone - new user to Gentoo here, I'm running Sakaki's Gentoo ARM64 build on my Raspberry Pi 3B & I've got to say I am quite satisfied with it! But I've run into a problem with trying to use MotionEye

There's apparently no OpenRC init script for MotionEye, so I guess one has to be made & I'm not smart enough to do this on my own unfortunately.
Has anyone been able to make MotionEye work with OpenRC?

This is the error I get when I try to use the sysvinit script
/etc/init.d/motioneye.init start
/etc/init.d/motioneye.init: line 23: /lib/lsb/init-functions: No such file or directory
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Tue Nov 28, 2017 1:34 pm    Post subject: Reply with quote

Hi kenny_w, welcome to Gentoo!

The file /lib/lsb/init-functions isn't present in OpenRC, which is why MotionEye's bundled Debian init script is failing.
However, looking at its bundled systemd unit file, you should at least be able to get the server started by running (as root):
Code:
pi64 ~ # /usr/bin/meyectl startserver -c /etc/motioneye/motioneye.conf

This won't get you start-stop-daemon's PIDfile creation etc. but if it works, at least it is then worth proceeding to write the OpenRC init file properly (you can ttake a look at some of the files in /etc/init.d for inspiration).
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
archenroot
Apprentice
Apprentice


Joined: 13 Dec 2011
Posts: 218
Location: Lake Macha, Czech republic

PostPosted: Mon Jul 02, 2018 8:27 pm    Post subject: Reply with quote

I got into similar situation but with Nuxeo DMS system:
https://doc.nuxeo.com/nxdoc/configuring-the-nuxeo-platform-as-a-daemon-with-sysvinit/

Is there any common way about how to replace lsb commands with OpenRC bundled with Gentoo?

Thanks for any hints.
_________________
Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum