Did an install on ubuntu 18.04 per
Installed is a systemd service hassio-supervisor
[Unit]
Description=Hass.io supervisor
Requires=docker.service
After=docker.service dbus.socket
[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStartPre=-/usr/bin/docker stop hassio_supervisor
ExecStart=/usr/sbin/hassio-supervisor
ExecStop=/usr/bin/docker stop hassio_supervisor
[Install]
WantedBy=multi-user.target
All seems to be working ok…but
During the system shutdown (ubuntu 18.04) it fires a stop job for hassio-supervisor systemd service which basically hangs and eventually times out after about 3 minutes and then the shutdown finishes.
If I do sudo systemctl stop hassio-supervisor
from a terminal it seems to shutdown ok in a few seconds so
I am guessing that at shutdown that command from the service /usr/bin/docker stop hassio_supervisor
is hanging. All it is doing is stopping the container so not sure why this would hang.
Given the After=docker.service dbus.socket
it should do this before the docker service stops (systemd does order in reverse at shutdown).
I thought maybe the mounted partition that my containers are on was unmounting before and thus causing the hang but I added an After
for that in the docker service to make sure. That did not cure this issue.
Anyone faced this? Have a solution?
I run this on a home server that has other missions and although it’s not fatal having the server take an extra 3 minutes to reboot is an issue.
`