looking at the syslog
This is what I get when I do a sudo systemctl restart home-assistant@hass
Dec 20 15:20:30 hass systemd[1]: Stopping Home Assistant...
Dec 20 15:20:30 hass hass[10219]: #033[32m16-12-20 15:20:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_stop[L]>#033[0m
Dec 20 15:20:30 hass hass[10219]: #033[32m16-12-20 15:20:30 INFO (Thread-8) [pubnubsubhandler] PubNub unsubscribing#033[0m
Dec 20 15:20:30 hass hass[10219]: #033[32m16-12-20 15:20:30 INFO (Thread-4) [homeassistant.components.zwave] Stopping ZWave network.#033[0m
Dec 20 15:20:30 hass hass[10219]: #033[32m16-12-20 15:20:30 INFO (Thread-4) [openzwave] Stop Openzwave network.#033[0m
Dec 20 15:20:30 hass hass[10219]: #033[32m16-12-20 15:20:30 INFO (Thread-4) [openzwave] ZWave configuration written to user directory.#033[0m
Dec 20 15:20:30 hass hass[10219]: #033[32m16-12-20 15:20:30 INFO (EndpointThread-Leave-0) [pubnubsubhandler] PubNub disconnected (lost internet?)#033[0m
Dec 20 15:21:08 hass hass[10219]: #033[32m16-12-20 15:21:08 INFO (Thread-13) [netdisco.service] Scanning#033[0m
Dec 20 15:21:40 hass named[602]: error (network unreachable) resolving 'ntp-g7g.amazon.com/A/IN': 2001:502:f3ff::1#53
Dec 20 15:21:40 hass rsyslogd-2007: action 'action 17' suspended, next retry is Tue Dec 20 15:23:10 2016 [try http://www.rsyslog.com/e/2007 ]
Dec 20 15:22:00 hass systemd[1]: [email protected] stop-sigterm timed out. Killing.
Dec 20 15:22:00 hass systemd[1]: [email protected]: main process exited, code=killed, status=9/KILL
Dec 20 15:22:00 hass systemd[1]: Unit [email protected] entered failed state.
Dec 20 15:22:00 hass systemd[1]: Starting Home Assistant...
Dec 20 15:22:00 hass systemd[1]: Started Home Assistant.
Notice at 15:22:00 the shutdown seems to timeout and just get killed. This doesn’t happen when doing it through the webpage.
This is what I get when I use the restart service through the web page
Dec 20 15:28:17 hass hass[10547]: #033[32m16-12-20 15:28:17 INFO (Thread-9) [pubnubsubhandler] PubNub unsubscribing#033[0m
Dec 20 15:28:17 hass hass[10547]: #033[32m16-12-20 15:28:17 INFO (Thread-6) [homeassistant.components.zwave] Stopping ZWave network.#033[0m
Dec 20 15:28:17 hass hass[10547]: #033[32m16-12-20 15:28:17 INFO (Thread-6) [openzwave] Stop Openzwave network.#033[0m
Dec 20 15:28:17 hass hass[10547]: #033[32m16-12-20 15:28:17 INFO (Thread-6) [openzwave] ZWave configuration written to user directory.#033[0m
Dec 20 15:28:17 hass hass[10547]: #033[32m16-12-20 15:28:17 INFO (EndpointThread-Leave-0) [pubnubsubhandler] PubNub disconnected (lost internet?)#033[0m
Dec 20 15:30:32 hass hass[10547]: #033[32m16-12-20 15:30:32 INFO (Thread-13) [netdisco.service] Scanning#033[0m
Dec 20 15:30:32 hass rsyslogd-2007: action 'action 17' suspended, next retry is Tue Dec 20 15:32:02 2016 [try http://www.rsyslog.com/e/2007 ]
Dec 20 15:32:17 hass named[602]: error (network unreachable) resolving './NS/IN': 2001:503:ba3e::2:30#53
Dec 20 15:32:17 hass named[602]: error (network unreachable) resolving 'google.com/DS/IN': 2001:503:ba3e::2:30#53
Dec 20 15:32:17 hass rsyslogd-2007: action 'action 17' suspended, next retry is Tue Dec 20 15:33:47 2016 [try http://www.rsyslog.com/e/2007 ]
Dec 20 15:32:40 hass named[602]: error (network unreachable) resolving './NS/IN': 2001:7fe::53#53
Dec 20 15:32:40 hass named[602]: error (network unreachable) resolving './NS/IN': 2001:503:c27::2:30#53
Dec 20 15:32:40 hass named[602]: error (network unreachable) resolving 'ndmdhs.com/DS/IN': 2001:7fe::53#53
Dec 20 15:32:40 hass named[602]: error (network unreachable) resolving 'ndmdhs.com/DS/IN': 2001:503:c27::2:30#53