Skip to content

Starting pod on system boot using Systemd #25242

Answered by elhananjair
elhananjair asked this question in Q&A
Discussion options

You must be logged in to vote

This finally seems working for me

[Unit]
Description=Starts ERP container Service
Requires=podman.socket NetworkManager.service

[Service]
User=USERNAME
Group=GROUPNAME
Type=oneshot
# RemainAfterExit=yes
ExecStartPre=/bin/sleep 120
Restart=on-failure
TimeoutStartSec=infinity
RestartSec=120s
ExecStart=podman pod start pod_mypod

[Install]
WantedBy=multi-user.target

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@eriksjolund
Comment options

Comment options

You must be logged in to vote
4 replies
@eriksjolund
Comment options

@eriksjolund
Comment options

@elhananjair
Comment options

@elhananjair
Comment options

Comment options

You must be logged in to vote
2 replies
@eriksjolund
Comment options

@elhananjair
Comment options

Comment options

You must be logged in to vote
1 reply
@elhananjair
Comment options

Answer selected by elhananjair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants