15 lines
537 B
Plaintext
15 lines
537 B
Plaintext
|
[Unit]
|
||
|
Description=MinIO podman container
|
||
|
|
||
|
[Service]
|
||
|
Restart=on-failure
|
||
|
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 --detach -p "9000:9000" -e "MINIO_ACCESS_KEY={{ pillar['minio']['accesskey'] }}" -v "/srv/minio:/data" -e "MINIO_SECRET_KEY={{ pillar['minio']['secretkey'] }}" minio/minio server /data
|
||
|
ExecStop=/usr/bin/sh -c "/usr/bin/podman rm -f `cat /%t/%n-cid`"
|
||
|
KillMode=none
|
||
|
Type=forking
|
||
|
PIDFile=/%t/%n-pid
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|