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>
This commit is contained in:
Jerry Sun 2018-10-15 10:02:27 -04:00
parent 7999d5f689
commit 58cb1190e0

View File

@ -5,6 +5,8 @@ Description=v2 Registry server for Docker
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