31-01-2020, 06:52
The player is wired... But there are mobile control point apps. And I am not sure that ethernet connection will help, it is the same router.
#!/bin/sh
#
# $FreeBSD: /usr/local/etc/rc.d/minimserver, 2020/02/03 05:55:56 isaac Exp $
#
# PROVIDE: minimserver
# KEYWORD: FreeBSD
#
# minimserver startup
#
. /etc/rc.subr
. /usr/local/etc/gnome.subr
minimserver_enable=${minimserver_enable}
minimserver_flags=${minimserver_flags}
name=minimserver
rcvar=minimserver_enable
minimserver_path=/usr/local/share/minimserver
start_cmd=minimserver_start
stop_cmd=minimserver_stop
minimserver_start() {
PATH=${PATH}:/usr/local/sbin:/usr/local/bin
export PATH
LANG=en_US.UTF-8
export LANG
LC_CTYPE=en_US.UTF-8
export LC_CTYPE
LC_ALL=en_US.UTF-8
export LC_ALL
checkyesno minimserver_enable && echo "Starting minimserver." && \
${minimserver_path}/bin/startd ${minimserver_flags}
}
minimserver_stop() {
checkyesno minimserver_enable && echo "Stopping minimserver." && \
${minimserver_path}/bin/stopall
}
load_rc_config ${name}
run_rc_command "$1"
PSOPT="-eo pid,user,vsz,stat,args"
PSOPT="-exo pid,user,vsz,stat,args"
(05-02-2020 04:28)imush Wrote: [ -> ]Somehow, after some network tweaking, it now works with eero router, although I cannot say why. If you have a similar problem, try eero customer support, they are very responsive and can do more tweaks than the user interface allows. It is a bit annoying that they have a backdoor that I cannot control, but I choose not to mind this for now and the wifi mesh works well.
Quote:Anyway, for a small token of contribution, here is my rc script which can do start and stop and looks more compliant with the rc.conf standard:
(09-02-2020 15:35)simoncn Wrote: [ -> ]No, because the -x option of the ps command is specific to BSD and causes an error when running on Linux.
. /usr/local/etc/gnome.subr
root@services-ext:~ # service minimserver start
Starting minimserver.
Failed to start MinimServer
(09-02-2020 22:57)airflow Wrote: [ -> ]When testing your suggested improvements, I found that
Code:
. /usr/local/etc/gnome.subr
does not work and seems to not be needed, so I removed it.
Also, when I start the service now, I get the following error-message:
Code:
root@services-ext:~ # service minimserver start
Starting minimserver.
Failed to start MinimServer
Apart from this message, I cannot find any problem in the minimserver-log and it works fine. So I incorporated the improvements in the tutorial.