CSchantz Wiki

Podman Systemd

Generate Systemd service files

Podman Systemd Generation 

Check for pod name

podman ps

Basic generate command example

podman generate systemd --new --name

Example

podman generate systemd --new --name unifi

Example redirected to file location

podman generate systemd --new --name unifi > ~/.config/systemd/user/unifi.service

Set Permissions

chmod 644 ~/.config/systemd/user/unifi.service
restorecon ~/.config/systemd/user/unifi.service

Reload and Enable 

systemctl --user daemon-reload
systemctl --user enable unifi.service
systemctl --user status unifi.service