-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[remux] xochitl is not started for new rm2fb version in toltec #127
Comments
thanks for investigating! I thought this was fixed |
I think toltec-dev/toltec@12e6fb4 already includes a patch but this just changes cmdline. The problem is that according to But I just tested it: The problem can be fixed by creating a symlink to |
regarding using systemctl to manage xochitl: the default xochitl.service has a watchdog which will restart the process if it doesn't ping every X minutes. this interferes with backgrounding xochitl. since I want to leave the system service mostly unmodified, remux behaves the way it does. if systemctl supports pause, can switch to that for the symlink: is Toltec or rm2fb a good place to put a PR? for stat vs cmdline: can remux switch to cmdline and things would work? |
I just try to solve this using a symlink and if this works I open a PR on toltec |
Ok, the name in PS: I still opened a PR for the symlink fix: toltec-dev/toltec#359 |
This update includes a change in the server code to set the server process name to 'rm2fb-server' (instead of the default 'xochitl'). See also #359 and rmkit-dev/rmkit#127. Test plan: Started the 'rm2fb' service, retrieved the server PID, and made sure that both `/proc/PID/cmdline` and `/proc/PID/stat` contained 'rm2fb-server' instead of 'xochitl'.
This update includes a change in the server code to set the server process name to 'rm2fb-server' (instead of the default 'xochitl'). See also #359 and rmkit-dev/rmkit#127.
I think this can be closed, since the issue has been fixed in toltec-dev/toltec#363. |
proc.list_procs
uses the program name defined in/proc/<id>/stat
to build up its process list. This causes the problem that it does not account that programs changed their argv[0] to be listed by a different cmdline.Particularity, this behavior causes the problem that
remux
is not compatible with the new rm2fb version released on toltec for the update 2.6+ sincerm2fb-server
now usesxochitl
instead ofremarkable-shutdown
[1]. To avoid the problem that it is listed by the wrong name it changes the cmdline torm2fb-server
[1] so that/proc/<id>/cmdline
contains correctlyrm2fb-server
but since the underlying exe isxochitl
the second value of/proc/<id>/stat
is(xochitl)
.This way
remux
assumes thatxochitl --system
is already started which is not correct.I would either suggest to include a check in the process list code if the cmdline and stat differs or depend on
systemctl start/stop xochitl
to handle the execution and state ofxochitl
.[1] toltec-dev/toltec@12e6fb4
The text was updated successfully, but these errors were encountered: