chore: adjust systemd attribute order
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-04-10 17:22:57 +02:00
parent ea719292e5
commit 1f84cb7538
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 5 additions and 9 deletions

View File

@ -9,7 +9,6 @@ freshrss_base_url: "http://localhost/"
freshrss_user: "freshrss" freshrss_user: "freshrss"
freshrss_user_home: "/home/{{ freshrss_user }}" freshrss_user_home: "/home/{{ freshrss_user }}"
freshrss_container_name: freshrss
freshrss_restart_policy: always freshrss_restart_policy: always
freshrss_service_stopped: False freshrss_service_stopped: False

View File

@ -11,6 +11,9 @@ BindsTo={{ __freshrss_pod_name }}.service
After={{ __freshrss_pod_name }}.service After={{ __freshrss_pod_name }}.service
[Service] [Service]
Type=notify
NotifyAccess=all
KillMode=control-group
Environment=PODMAN_SYSTEMD_UNIT=%N Environment=PODMAN_SYSTEMD_UNIT=%N
SyslogIdentifier=%N SyslogIdentifier=%N
LogExtraFields=CONTAINER_NAME=%N LogExtraFields=CONTAINER_NAME=%N
@ -56,9 +59,5 @@ ExecStart=/usr/bin/podman start {{ __freshrss_container_name }}
ExecStop=/usr/bin/podman stop --ignore -t 10 {{ __freshrss_container_name }} ExecStop=/usr/bin/podman stop --ignore -t 10 {{ __freshrss_container_name }}
ExecStopPost=/usr/bin/podman rm --force --ignore {{ __freshrss_container_name }} ExecStopPost=/usr/bin/podman rm --force --ignore {{ __freshrss_container_name }}
Type=notify
NotifyAccess=all
KillMode=control-group
[Install] [Install]
WantedBy=multi-user.target default.target WantedBy=multi-user.target default.target

View File

@ -10,10 +10,11 @@ Requires= dbus.socket {{ __freshrss_container_name }}.service
Before={{ __freshrss_container_name }}.service Before={{ __freshrss_container_name }}.service
[Service] [Service]
Type=forking
KillMode=control-group
Environment=PODMAN_SYSTEMD_UNIT=%N Environment=PODMAN_SYSTEMD_UNIT=%N
SyslogIdentifier=%N SyslogIdentifier=%N
LogExtraFields=CONTAINER_NAME=%N LogExtraFields=CONTAINER_NAME=%N
Delegate=memory pids Delegate=memory pids
Restart=always Restart=always
@ -30,8 +31,5 @@ ExecStartPre=/usr/bin/podman pod create \
ExecStart=/usr/bin/podman pod start {{ __freshrss_pod_name }} ExecStart=/usr/bin/podman pod start {{ __freshrss_pod_name }}
ExecStop=/usr/bin/podman pod stop --ignore -t 10 {{ __freshrss_pod_name }} ExecStop=/usr/bin/podman pod stop --ignore -t 10 {{ __freshrss_pod_name }}
Type=forking
KillMode=control-group
[Install] [Install]
WantedBy=multi-user.target default.target WantedBy=multi-user.target default.target