integ/config-files/docker-config/files/docker-stx-override.conf
Bin Qian 5d13b4c911 Set docker service monitored by pmond
override docker service so systemd:
1. to create/remove /var/run/dockerd.pid file at service start/stop.
2. not to restart automatically on exit or failure

deploy docker.conf for pmond to monitor docker service

Story: 2002843
Task: 29391

Change-Id: I3595d0d4f97d90e4119fc1455bcf164aebc5d6ec
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2019-02-19 11:33:00 -05:00

7 lines
166 B
Plaintext

[Service]
ExecStartPost=/bin/bash -c 'echo $MAINPID > /var/run/dockerd.pid;'
ExecStopPost=/bin/rm -f /var/run/dockerd.pid
# pmond monitors docker service
Restart=no