Revert "mirrorlist: adapt service file based on official recommendation"
This reverts commit 96904b2c5bf5a2cee1cacd877911740954f4b245.
This commit is contained in:
parent
ad8c451629
commit
4b588f620c
1 changed files with 2 additions and 7 deletions
|
@ -2,14 +2,11 @@
|
|||
Description=Mirrorlist Container {{ item }}
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
User=mirrormanager
|
||||
ExecStartPre=-/usr/bin/podman stop -t 1 %n
|
||||
ExecStartPre=-/usr/bin/podman rm %n --force
|
||||
ExecStartPre=/usr/bin/rm -f /%t/%n-pid /%t/%n-cid
|
||||
ExecStart=/usr/bin/podman run \
|
||||
--conmon-pidfile /%t/%n-pid \
|
||||
--cidfile /%t/%n-cid \
|
||||
--rm=true \
|
||||
--net=host --userns=keep-id \
|
||||
--rm=true --name %n \
|
||||
-v /usr/share/GeoIP:/usr/share/GeoIP \
|
||||
|
@ -23,10 +20,8 @@ ExecStart=/usr/bin/podman run \
|
|||
--port 1808{{ item }} \
|
||||
--listen 127.0.0.1 \
|
||||
-l /var/log/mirrormanager/%n.log
|
||||
ExecStop=/usr/bin/sh -c "/usr/bin/podman rm -f `cat /%t/%n-cid`"
|
||||
ExecStop=/usr/bin/podman stop -t 1 %n
|
||||
KillMode=none
|
||||
Type=forking
|
||||
PIDFile=/%t/%n-pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue