added service
This commit is contained in:
parent
bca3c61f69
commit
83a1f7934f
1 changed files with 14 additions and 0 deletions
14
rebased-pod.service
Normal file
14
rebased-pod.service
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Rebased Podman container
|
||||||
|
Wants=syslog.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=/bin/sleep 10
|
||||||
|
Restart=always
|
||||||
|
ExecStartPre=/usr/bin/podman pod start rebased-pod
|
||||||
|
ExecStart=/usr/bin/podman attach rebased-web
|
||||||
|
ExecStop=/usr/bin/podman pod stop rebased-pod
|
||||||
|
User=psw
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue