linuxserver / docker-calibre

GNU General Public License v3.0
367 stars 64 forks source link

Feature req: Autostart calibre upon container start #84

Closed rodalpho closed 2 years ago

rodalpho commented 2 years ago

Desired Behavior

I have this container running on a synology NAS, primarily used for the calibre content server (CCS) daemon, but also interactively in the GUI every week or two. For some reason, it intermittently stops working.

I can periodically restart the container via cron no problem, but the issue there is that calibre itself (/opt/calibre/bin/calibre) does not autostart when the container does-- it only starts when you interactively connect to guacamole. And the CCS doesn't start until the GUI calibre does.

(Note: Yes I could run the CCS in a separate container, but then when I want to use the GUI I'd need to stop the CCS-only container first as calibre doesn't like conflicts and must be local. That's why I'm running it on the NAS in the first place rather than over SMB from a linux box.)

Now I hacked together a way to fix that too, attaching to the container in shell, exporting my LD_LIBRARY_PATH and DISPLAY variables, and then running calibre from the CLI, and this seems to work, but the DISPLAY could change upon container restart and it's generally an ugly solution.

My request is for an environment variable to auto-start calibre when the container starts, as opposed to when a user connects to guacamole.

Current Behavior

Calibre doesn't start until you connect to guac

Alternatives Considered

Ugly solution described above

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

aptalca commented 2 years ago

That feature is already implemented. It should autostart. If it's not starting, then there's a bug.

aptalca commented 2 years ago

fixed in #85

rodalpho commented 2 years ago

Thanks! Really appreciate it.