integ/kubernetes/docker-distribution/centos/files/docker-distribution.service
Jerry Sun 58cb1190e0 Docker Registry PID file missing
The missing PID file was spamming SM logs. This commit creates the
missing PID file for Docker Registry which fixes the issue.

Task: 22782
Story: 2002840

Change-Id: I10438e034165de88649a0228ffa9840768f6a1d6
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
2018-10-15 10:02:27 -04:00

13 lines
343 B
Desktop File

[Unit]
Description=v2 Registry server for Docker
[Service]
Type=simple
ExecStart=/usr/bin/registry serve /etc/docker-distribution/registry/config.yml
Restart=on-failure
ExecStartPost=/bin/bash -c 'echo $MAINPID > /var/run/docker-distribution.pid'
ExecStopPost=/bin/rm -f /var/run/docker-distribution.pid
[Install]
WantedBy=multi-user.target