Skip to content

Fix OpenRC Documentation#114

Open
DerVerruckteFuchs wants to merge 3 commits intoMCSManager:mainfrom
DerVerruckteFuchs:main
Open

Fix OpenRC Documentation#114
DerVerruckteFuchs wants to merge 3 commits intoMCSManager:mainfrom
DerVerruckteFuchs:main

Conversation

@DerVerruckteFuchs
Copy link
Copy Markdown

This commit has two fixes, and an improvement.

Fix 1:
The stop() function can't be used with supervisor-daemon, since supervisor-daemon requires the default start, stop, and status functions.

If the stop() function is left as is, it will fail to actually stop either mcsmd, or mcsmw (or rather either node processes running the web UI and daemon) when open-rc mcsmd/mcsmw stop is run. Monitoring the system's running processes with top/htop/btop, or similar, when trying to stop either will show that they still run even after the stop command was issued.

Simply removing the stop() function fixes this issue. Using open-rc mcsmd/mcsmw stop will work just fine since supervisor-daemon uses the default stop function.

Fix 2:
The lines that use /bin/kill -s $SOME_SIGNAL $MAINPID fail to find a PID to send a signal to, since OpenRC does not use $MAINPID like systemd does and is left unset as a result. This was fixed by using the reload() function example from the Gentoo wiki.

The improvement:
The location for log files were added. This is helpful since it puts them in the standard logging folder location; this will make them easier to find and in close proximity to logs for reverse proxies, or any other administrative tools needed to run MCSManager.

Chris Billheimer added 3 commits April 17, 2026 14:58
In order to use supervisor-daemon, it is required to only use the default start(),
stop(), and status() functions.

Reference:
https://github.com/OpenRC/openrc/blob/master/supervise-daemon-guide.md
$MAINPID is used by systemd. It does not look like OpenRC uses it, or
even sets it. The reload() function is fixed by using the Gentoo example for `acpid`.
It requires a `pidfile`.

Reference:
https://wiki.gentoo.org/wiki/OpenRC/supervise-daemon#Instructions_per_service
Set log files to the standard logging location. This helps
administration since the log files will be located in the standard
logging folder along with any reverse proxies and/or any other services that
are needed to run MCSManager.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 17, 2026

Someone is attempting to deploy a commit to the unitwk's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant