yacy / yacy_search_server

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
http://yacy.net
Other
3.44k stars 429 forks source link

Yacy is not working with openrc. #134

Open darkneptune opened 7 years ago

darkneptune commented 7 years ago

Yacy is not working with openrc.

Please, consider create a 'yacy-openrc' fix to allow users run 'yacy' into 'openrc' instead of 'systemd'.

Besides, it would be grateful not to use 'java'.

Thanks a lot. xD

luccioman commented 7 years ago

Hi, beyond the joke of not using 'java', maybe you could provide more details about why YaCy doesn't work with OpenRC, for example which Operating System you use, how you try to start the server and which error you get?

darkneptune commented 7 years ago

OS: GNU Parabola (similar to Arch). https://www.parabola.nu/ Service Manager: OpenRC https://wiki.gentoo.org/wiki/OpenRC

I have already installed yacy package. it worked with 'systemd', but I didn't find the yacy service into all available init scripts in 'openrc' (rc-update show -v) and start it.

luccioman commented 7 years ago

Ok, I tried to run YaCy on a Parabola live distribution (parabola-openrc-lxde-2017.10.03-dual.iso) with releases yacy_v1.92_20161226_9000.tar.gz and yacy_v1.921_20170830_9342.tar.gz. Steps :

But for now I had a blocking error at startup : java.net.MalformedURLException: Localhost name unknown: java.net.UnknownHostException: parabolaiso: parabolaiso

It looks like there is something to fix but I don't know if it is directly related to OpenRC. I will try to find some time to install Parabola somewhere and dig further...

darkneptune commented 7 years ago

When I installed 'yacy' into GNU Parabola OS, automatically installed 'jdk7-openjdk' too (as dependencies), not 8. :/

EDIT: 'yacy' version 1.92-2 is into 'pcr' Parabola repo.

luccioman commented 7 years ago

Ok, yes I didn't notice there was a 1.92-2 yacy package in the 'pcr' Parabola repository, which is great. That's why I tested with the generic tar.gz binary release and manually installed JDK 8.

Unfortunately it looks like the person who packaged YaCy for Parabola didn't share its packaging scripts either on Parabola ( https://repomirror.parabola.nu/sources/packages/ ) or here. Did you submitted them the issue too?

By the way, I will try to check in the coming days why even the generic tar.gz release seems to have an error on this system.

luccioman commented 7 years ago

@darkneptune What I found for now :

luccioman commented 7 years ago

One more note though : waiting for a proper OpenRC integration package, one can still manually start YaCy from the Parabola package by launching for example /opt/yacy/yacy start or /opt/yacy/yacy start > /dev/null & (as background process).

darkneptune commented 7 years ago

Thank you!

I'll be waitting for a full openrc integration too.