mirror of
https://github.com/containers/podman.git
synced 2025-10-18 03:33:32 +08:00
podman: new option --conmon-pidfile=
so that it is possible to use systemd to automatically restart the container: [Service] Type=forking PIDFile=/run/awesome-service.pid ExecStart=/usr/bin/podman run --conmon-pidfile=/run/awesome-service.pid --name awesome -d IMAGE /usr/bin/do-something ExecStopPost=/usr/bin/podman rm awesome Restart=always Closes: https://github.com/projectatomic/libpod/issues/534 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #549 Approved by: rhatdan
This commit is contained in:

committed by
Atomic Bot

parent
ecda694a92
commit
f936b745b6
@ -251,6 +251,8 @@ type ContainerConfig struct {
|
||||
CgroupParent string `json:"cgroupParent"`
|
||||
// LogPath log location
|
||||
LogPath string `json:"logPath"`
|
||||
// File containing the conmon PID
|
||||
ConmonPidFile string `json:"conmonPidFile,omitempty"`
|
||||
// TODO log options for log drivers
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user