Mythtv Backend in Docker. Trouble with starting service.
Got it into a Docker, mostly. One problem is remaining though.
When the container starts and runs my entrypoint.sh it does everything except start the myth backend itself. All configuration, and the other services are started properly. If I enter the container to run the command manually. Code:
service mythtv-backend start Code:
service mythtv-backend restart I'm probably not doing my entrypoint correctly. Here are my entrypoint & Dockerfile. Posting via ubuntupaste. I'm sure my service && bash is the wrong way to do it. It's worked on my other services thus far. I added that sleep thinking maybe it just needed to wait till the sql was fully running or something. Dockerfile - https://paste.ubuntu.com/p/mpCnV3dBMv/ Entrypoint - https://paste.ubuntu.com/p/jDDSNFStCZ/ I'd appreciate any suggestions. |
Have you tried using systemctl instead of service?
I'd be interested in the output of Code:
systemctl status mythtv-backend |
Sorry, took a few days. The reason I don't use Systemd is it is not normally used in Docker containers. I did however rebuild with rsyslog. Here is where the problem seems to be, rather the only Errors in the log.
Code:
Dec 29 15:04:32 mythsql mysqld: 2020-12-29 15:04:32 50 [ERROR] mysqld: Table './mythconverg/tvchain' is marked as crashed and should be repaired |
So I was way off on the error above. That turns out to be meaningless near as I can tell. I did however find the issue with the pid file not being removed on container stop. Existing pid file means failed restart requiring a manual service restart. Added this line to my entrypoint before the service start.
Code:
[ -f /run/mythtv/mythbackend.pid ] && rm /run/mythtv/mythbackend.pid |
All times are GMT -5. The time now is 07:28 PM. |