Open kedvsk opened 5 months ago
Hi,
You could run Greyhole (and Samba) as a Docker container, using https://hub.docker.com/r/gboudreau/samba-greyhole
And declare a dependency on a mariadb container using docker-compose depends_on
, or docker link
.
(The documented way to run the contained, using a sample samba-greyhole.service
, will result in the same problem you're having).
Also: why do you care that the Greyhole service fails to start if mariadb is down? systemd will simply retry until it works, no? (But yeah, you'll need to remove the mysqld.service
from the .service file.)
Greyhole service depends on startup on:
Requires=mysqld.service smbd.service
Removing "mysqld.service" is a workaround but results in errors on startup because mysql is not right up now:My question (maybe the wrong place here): how to tell greyhole.service to wait for mariadb container?