Alpine Linux: Convert Podman systemd to openrc
1
vote
1
answer
2421
views
I use Alpine Linux and podman command to generate container systemd
**Command:**
to start specific containers as as service and this containers must be visible to root only
**Command:**
podman generate systemd -n test -f
**Output:**
# container-test
# autogenerated by Podman 3.4.7
# Fri Apr 29 02:29:47 CEST 2022
[Unit]
Description=Podman container-test.service
Documentation=man:podman-generate-systemd(1)
Wants=network-online.target
After=network-online.target
RequiresMountsFor=/run/containers/storage
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStart=/usr/bin/podman start test
ExecStop=/usr/bin/podman stop -t 10 test
ExecStopPost=/usr/bin/podman stop -t 10 test
PIDFile=/run/containers/storage/overlay-containers/fc64dadf99ddb38f98ddcb3e022bc575ca39cd57f4e2e8c5cc63595377e2c3ad/userdata/conmon.pid
Type=forking
[Install]
WantedBy=default.target
Because Alpine Linux is not using systemd I need to convert this container service to openrc
**The Goal is:** to start specific containers as as service and this containers must be visible to root only
Asked by Rafal Niznik
(333 rep)
May 4, 2022, 02:48 PM
Last activity: May 14, 2022, 02:10 PM
Last activity: May 14, 2022, 02:10 PM