Make AppArmor independent of Supervisor service (#1592)

Currently the hassos-apparmor.service wants the
hassos-supervisor.service and vice-versa. This is unnecessary and leads
to activation of hassos-supervisor.service when reload/restart
hassos-apparmor.service (Supervisor is doing that on startup).

Make hassos-apparmor.service independent and add dependency as well as
ordering from hassos-supervisor.service side.
This commit is contained in:
Stefan Agner
2021-10-15 01:36:02 +02:00
committed by GitHub
parent ce566167f2
commit 74fe7d4cb8
2 changed files with 3 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
[Unit]
Description=HassOS AppArmor
Wants=hassos-supervisor.service network-online.target time-sync.target
Wants=network-online.target time-sync.target
After=network-online.target time-sync.target
Before=docker.service hassos-supervisor.service
Before=docker.service
RequiresMountsFor=/mnt/data
[Service]