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.
15 lines
297 B
Desktop File
15 lines
297 B
Desktop File
[Unit]
|
|
Description=HassOS AppArmor
|
|
Wants=network-online.target time-sync.target
|
|
After=network-online.target time-sync.target
|
|
Before=docker.service
|
|
RequiresMountsFor=/mnt/data
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=true
|
|
ExecStart=/usr/libexec/hassos-apparmor
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|