initial version
This commit is contained in:
commit
e12a2371f1
6 changed files with 761 additions and 0 deletions
17
restic-server.service.j2
Normal file
17
restic-server.service.j2
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Podman Compose based service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
# If started incorrectly: stop it first (ie when started without systemd, systemd will know something is started
|
||||
# and will not do anything when start is called on a unit that already is running)
|
||||
ExecStartPre=-/usr/bin/podman-compose -f {{ homedir }}/compose.yml down
|
||||
ExecStartPre={{ ppmbinary }} setup --do-not-enable-units
|
||||
ExecStart=/usr/bin/podman-compose -f {{ homedir }}/compose.yml up
|
||||
ExecStop=/usr/bin/podman-compose -f {{ homedir }}/compose.yml down
|
||||
Restart=always
|
||||
WorkingDirectory={{ homedir }}
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue