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 }}
|
Description=Mirrorlist Container {{ item }}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=on-failure
|
|
||||||
User=mirrormanager
|
User=mirrormanager
|
||||||
ExecStartPre=-/usr/bin/podman stop -t 1 %n
|
ExecStartPre=-/usr/bin/podman stop -t 1 %n
|
||||||
ExecStartPre=-/usr/bin/podman rm %n --force
|
ExecStartPre=-/usr/bin/podman rm %n --force
|
||||||
ExecStartPre=/usr/bin/rm -f /%t/%n-pid /%t/%n-cid
|
|
||||||
ExecStart=/usr/bin/podman run \
|
ExecStart=/usr/bin/podman run \
|
||||||
--conmon-pidfile /%t/%n-pid \
|
--rm=true \
|
||||||
--cidfile /%t/%n-cid \
|
|
||||||
--net=host --userns=keep-id \
|
--net=host --userns=keep-id \
|
||||||
--rm=true --name %n \
|
--rm=true --name %n \
|
||||||
-v /usr/share/GeoIP:/usr/share/GeoIP \
|
-v /usr/share/GeoIP:/usr/share/GeoIP \
|
||||||
|
@ -23,10 +20,8 @@ ExecStart=/usr/bin/podman run \
|
||||||
--port 1808{{ item }} \
|
--port 1808{{ item }} \
|
||||||
--listen 127.0.0.1 \
|
--listen 127.0.0.1 \
|
||||||
-l /var/log/mirrormanager/%n.log
|
-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
|
KillMode=none
|
||||||
Type=forking
|
|
||||||
PIDFile=/%t/%n-pid
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue