[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [atomic-devel] recommended way of running a container



On 5/2/19 9:20 PM, Brent Baude wrote:
> On Thu, 2019-05-02 at 16:12 +0200, Farkas Levente wrote:
>> - Create a systemd service file on the host for the healthcheck,
>> - Create a systemd timer  file on the host for the healthcheck.
>>
> 
> Just for the record, healthchecks are optional.  The systemd service
> and timer files are created automatically for you with podman and are
> considered to be transient in nature.  That means if the system is
> rebooted, that timer and service are deleted.  If the container is
> started again, they are recreated.

does it means the recommended way to create one systemd service file for
the container and in this service the ExecStart's podman should have to
be a --healthcheck-command parameter (and may be more) and use the
podman generated transient timer or service for healtcheck?

and in this case in case of failure who and how will restart the main
service?

-- 
  Levente                               "Si vis pacem para bellum!"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]