who can help to get autostart Cuberite in FreeBSD like service
yangm97
I surely can't
pel_MEN
not so many people here Huh?
yangm97
¯\_(ツ)_/¯
pel_MEN
ok///
will wait
yangm97
I only know how to set these things on macOS and Linux
pel_MEN
i find out how it can do on Linux, but script don`t work for BSD
yangm97
I think the linux script looks for systemd
since FreeBSD uses another init system, the script doesn't know what to do I think
pel_MEN
not sure it`s use two files .sh and cuberite by rc.d
what in script i not undestand at all
yangm97
you only need the Cuberite binary to start the server
but you must cd to the directory the server is located before actually starting cuberite
so something like cd /path/to/Server && ./Cuberite should do it
pel_MEN
thanck i will try
thanks*
inex has quit
pel_MEN has quit
yangm97
today I discovered cuberite webadmin is very hacky
and I hacked around the hack
PureTryOut[m]
pel_MEN: I do run Cuberite on my personal FreeBSD server, but I don't autostart it, sorry
JamesTait joined the channel
JamesTait
Good morning all! Happy Friday, and happy Systems Engineer Day! 😃
PureTryOut[m]
good morning!
JamesTait has quit
JamesTait joined the channel
feliwir has left the channel
sphinxc0re
pel_MEN: You can start Cuberite as a deamon by adding the command line switch `-d` or `--service`
sgtbigman joined the channel
inex joined the channel
JamesTait has quit
sgtbigman has quit
guenstig_werben
Yan, could you try some setup and see if it decreases performance or something like that?
Running cuberite without the d option but with </dev/zero (meaning that it should read the stdin from /dev/zero) could solve your problem, but you would be unable to access the command line and I'm not sure it you are slowing down the system because /dev/zero is a special file that always returns the null character (\0) when you read from it
yangm97
there's a workaround of running as a daemon inside a shell script and then run something like tail -f /etc/hosts
but as the name says, it's a workaround
guenstig_werben
Or cat <<
You mean something that's blocking
Well Cat is exactly the wrong example
Sorry for that
yangm97
but then I would lose some Docker goodness, like if Cuberite crashes Docker won't be able to know and restart it automatically
also I don't know if Cuberite would shut down gracefully this way
because the SIGTERM would get trapped on the shell script
guenstig_werben
With </dev/zero it would work like normally....
It's basically spamming the stdin with \0
yangm97
I see
right now I'm trying to either shove postgresql down spigot plugins throat or mysql into synapse
I must say I'm not getting anywhere and am doing it just for the sake of having a single database to rule them all