58cb1190e0
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>
13 lines
343 B
Desktop File
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
|