davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
322 stars 54 forks source link

Possible to speed up reboot time? #249

Closed BrianGilbert closed 3 months ago

BrianGilbert commented 3 months ago

commitup is running a process that slows down shutdown, it takes 1.5 minutes.. any way to reduce that timer?

Raspberry Pi 4, Bookworm

davesteele commented 3 months ago

Probably. It should shut down instantaneously. I haven't looked into this.

davesteele commented 3 months ago

Can't reproduce.

BrianGilbert commented 3 months ago

@davesteele apologies, it was reboot time that has the pause..

using sudo shutdown -r now I get the following during the shutdown procedure which takes 1.5 min before the reboot can proceed

IMG_2190

davesteele commented 3 months ago

Take a look in the comitup (/var/log/comitup.log) and systemd (journalctl -u comitup) logs.

BrianGilbert commented 3 months ago

/var/log/comitup.log

cat /var/log/comitup.log
2024-06-26 09:05:01,086 - comitup - INFO - Stopping comitup
2024-06-26 09:05:07,837 - comitup - INFO - Starting comitup
2024-06-26 09:05:07,997 - comitup - INFO - Setting state to HOTSPOT
2024-06-26 09:05:08,000 - comitup - INFO - Activating hotspot
2024-06-26 09:05:08,254 - comitup - INFO - Setting state to CONNECTING
2024-06-26 09:05:08,276 - comitup - INFO - Attempting connection to Gaia
2024-06-26 09:05:28,594 - comitup - INFO - Setting state to CONNECTED
2024-06-26 09:06:40,367 - comitup - INFO - Stopping comitup
2024-06-26 09:08:16,940 - comitup - INFO - Starting comitup
2024-06-26 09:08:17,108 - comitup - INFO - Setting state to HOTSPOT
2024-06-26 09:08:17,111 - comitup - INFO - Activating hotspot
2024-06-26 09:08:17,409 - comitup - INFO - Setting state to CONNECTING
2024-06-26 09:08:17,443 - comitup - INFO - Attempting connection to Gaia
2024-06-26 09:08:37,698 - comitup - INFO - Setting state to CONNECTED
2024-06-26 09:10:13,486 - comitup - INFO - Stopping comitup
2024-06-26 09:11:50,003 - comitup - INFO - Starting comitup
2024-06-26 09:11:50,166 - comitup - INFO - Setting state to HOTSPOT
2024-06-26 09:11:50,170 - comitup - INFO - Activating hotspot
2024-06-26 09:11:50,453 - comitup - INFO - Setting state to CONNECTING
2024-06-26 09:11:50,480 - comitup - INFO - Attempting connection to Gaia
2024-06-26 09:12:10,700 - comitup - INFO - Setting state to CONNECTED
2024-06-26 09:35:25,063 - comitup - INFO - Stopping comitup
2024-06-26 09:35:31,814 - comitup - INFO - Starting comitup
2024-06-26 09:35:31,979 - comitup - INFO - Setting state to HOTSPOT
2024-06-26 09:35:31,982 - comitup - INFO - Activating hotspot
2024-06-26 09:35:32,254 - comitup - INFO - Setting state to CONNECTING
2024-06-26 09:35:32,285 - comitup - INFO - Attempting connection to Gaia
2024-06-26 09:35:52,531 - comitup - INFO - Setting state to CONNECTED
2024-06-26 09:36:44,528 - comitup - INFO - Stopping comitup
2024-06-26 09:38:20,636 - comitup - INFO - Starting comitup
2024-06-26 09:38:20,835 - comitup - INFO - Setting state to HOTSPOT
2024-06-26 09:38:20,840 - comitup - INFO - Activating hotspot
2024-06-26 09:38:21,113 - comitup - INFO - Setting state to CONNECTING
2024-06-26 09:38:21,135 - comitup - INFO - Attempting connection to Gaia
2024-06-26 09:38:41,440 - comitup - INFO - Setting state to CONNECTED
2024-06-26 09:45:07,373 - comitup - INFO - Stopping comitup
2024-06-26 09:46:42,406 - comitup - INFO - Starting comitup
2024-06-26 09:46:42,573 - comitup - INFO - Setting state to HOTSPOT
2024-06-26 09:46:42,577 - comitup - INFO - Activating hotspot
2024-06-26 09:46:42,819 - comitup - INFO - Setting state to CONNECTING
2024-06-26 09:46:42,839 - comitup - INFO - Attempting connection to Gaia
2024-06-26 09:46:56,459 - comitup - INFO - Setting state to CONNECTED
2024-06-27 09:23:42,462 - comitup - INFO - Stopping comitup
2024-06-27 09:23:49,812 - comitup - INFO - Starting comitup
2024-06-27 09:23:49,971 - comitup - INFO - Setting state to HOTSPOT
2024-06-27 09:23:49,974 - comitup - INFO - Activating hotspot
2024-06-27 09:23:50,241 - comitup - INFO - Setting state to CONNECTING
2024-06-27 09:23:50,275 - comitup - INFO - Attempting connection to Gaia
2024-06-27 09:24:10,673 - comitup - INFO - Setting state to CONNECTED
2024-06-27 09:37:58,580 - comitup - INFO - Stopping comitup
2024-06-27 09:38:06,007 - comitup - INFO - Starting comitup
2024-06-27 09:38:06,187 - comitup - INFO - Setting state to HOTSPOT
2024-06-27 09:38:06,192 - comitup - INFO - Activating hotspot
2024-06-27 09:38:06,431 - comitup - INFO - Setting state to CONNECTING
2024-06-27 09:38:06,453 - comitup - INFO - Attempting connection to Gaia
2024-06-27 09:38:26,746 - comitup - INFO - Setting state to CONNECTED
2024-06-27 09:40:50,694 - comitup - INFO - Stopping comitup
2024-06-27 09:41:59,690 - comitup - WARNING - Connection lost on timeout
2024-06-27 09:41:59,729 - comitup - INFO - Setting state to CONNECTING
2024-06-27 09:41:59,759 - comitup - INFO - Attempting connection to Gaia
2024-06-27 09:41:59,785 - comitup - WARNING - DBUS failure connecting to Gaia - skipping
2024-06-27 09:41:59,804 - comitup - INFO - Setting state to HOTSPOT
2024-06-27 09:41:59,811 - comitup - INFO - Activating hotspot
2024-06-27 09:42:26,324 - comitup - INFO - Starting comitup
2024-06-27 09:42:32,121 - comitup - INFO - Starting comitup
2024-06-27 09:42:33,354 - comitup - INFO - Setting state to HOTSPOT
2024-06-27 09:42:33,358 - comitup - INFO - Activating hotspot
2024-06-27 09:42:33,617 - comitup - INFO - Setting state to CONNECTING
2024-06-27 09:42:33,751 - comitup - INFO - Setting state to CONNECTED
2024-06-27 10:23:26,116 - comitup - INFO - Stopping comitup
2024-06-27 10:24:49,914 - comitup - WARNING - Connection lost on timeout
2024-06-27 10:24:49,953 - comitup - INFO - Setting state to CONNECTING
2024-06-27 10:24:49,992 - comitup - INFO - Attempting connection to Gaia
2024-06-27 10:24:50,017 - comitup - WARNING - DBUS failure connecting to Gaia - skipping
2024-06-27 10:24:50,032 - comitup - INFO - Setting state to HOTSPOT
2024-06-27 10:24:50,037 - comitup - INFO - Activating hotspot
2024-06-27 10:25:01,459 - comitup - INFO - Starting comitup
2024-06-27 10:25:01,631 - comitup - INFO - Setting state to HOTSPOT
2024-06-27 10:25:01,636 - comitup - INFO - Activating hotspot
2024-06-27 10:25:01,920 - comitup - INFO - Setting state to CONNECTING
2024-06-27 10:25:01,940 - comitup - INFO - Attempting connection to Gaia
2024-06-27 10:25:22,291 - comitup - INFO - Setting state to CONNECTED
journalctl -u comitup
-- Boot 5b57e0e09c8940609d96b295d08f94a7 --
Jun 27 09:23:48 plexamp-lounge systemd[1]: Starting comitup.service - Comitup Wifi Management...
Jun 27 09:23:49 plexamp-lounge systemd[1]: Started comitup.service - Comitup Wifi Management.
Jun 27 09:23:50 plexamp-lounge dnsmasq[829]: started, version 2.89 cachesize 150
Jun 27 09:23:50 plexamp-lounge dnsmasq[829]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntr>
Jun 27 09:23:50 plexamp-lounge dnsmasq[829]: warning: interface wlan0 does not currently exist
Jun 27 09:23:50 plexamp-lounge dnsmasq-dhcp[829]: DHCP, IP range 10.41.0.100 -- 10.41.0.150, lease time 10m
Jun 27 09:23:50 plexamp-lounge dnsmasq[829]: no servers found in /etc/resolv.conf, will retry
Jun 27 09:23:50 plexamp-lounge dnsmasq[829]: read /etc/hosts - 7 names
Jun 27 09:23:50 plexamp-lounge dnsmasq[829]: exiting on receipt of SIGTERM
Jun 27 09:37:58 plexamp-lounge systemd[1]: Stopping comitup.service - Comitup Wifi Management...
Jun 27 09:37:58 plexamp-lounge systemd[1]: comitup.service: Deactivated successfully.
Jun 27 09:37:58 plexamp-lounge systemd[1]: Stopped comitup.service - Comitup Wifi Management.
Jun 27 09:37:58 plexamp-lounge systemd[1]: comitup.service: Consumed 1.256s CPU time.
-- Boot 4bab2e2f0b7747778aa18d1c6706a8fa --
Jun 27 09:38:05 plexamp-lounge systemd[1]: Starting comitup.service - Comitup Wifi Management...
Jun 27 09:38:06 plexamp-lounge systemd[1]: Started comitup.service - Comitup Wifi Management.
Jun 27 09:38:06 plexamp-lounge dnsmasq[841]: started, version 2.89 cachesize 150
Jun 27 09:38:06 plexamp-lounge dnsmasq[841]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntr>
Jun 27 09:38:06 plexamp-lounge dnsmasq[841]: warning: interface wlan0 does not currently exist
Jun 27 09:38:06 plexamp-lounge dnsmasq-dhcp[841]: DHCP, IP range 10.41.0.100 -- 10.41.0.150, lease time 10m
Jun 27 09:38:06 plexamp-lounge dnsmasq[841]: no servers found in /etc/resolv.conf, will retry
Jun 27 09:38:06 plexamp-lounge dnsmasq[841]: read /etc/hosts - 7 names
Jun 27 09:38:06 plexamp-lounge dnsmasq[841]: exiting on receipt of SIGTERM
Jun 27 09:40:50 plexamp-lounge systemd[1]: Stopping comitup.service - Comitup Wifi Management...
Jun 27 09:41:59 plexamp-lounge comitup[774]: Traceback (most recent call last):
Jun 27 09:41:59 plexamp-lounge comitup[774]:   File "/usr/share/comitup/comitup/states.py", line 381, in set_state_to
Jun 27 09:41:59 plexamp-lounge comitup[774]:     state_info.start_fn(0)
Jun 27 09:41:59 plexamp-lounge comitup[774]:   File "/usr/share/comitup/comitup/states.py", line 56, in wrapper
Jun 27 09:41:59 plexamp-lounge comitup[774]:     fn(reason)
Jun 27 09:41:59 plexamp-lounge comitup[774]:   File "/usr/share/comitup/comitup/states.py", line 123, in hotspot_start
Jun 27 09:41:59 plexamp-lounge comitup[774]:     activate_connection(hs_ssid, "HOTSPOT")
Jun 27 09:41:59 plexamp-lounge comitup[774]:   File "/usr/share/comitup/comitup/states.py", line 393, in activate_connection
Jun 27 09:41:59 plexamp-lounge comitup[774]:     nm.activate_connection_by_ssid(
Jun 27 09:41:59 plexamp-lounge comitup[774]:   File "/usr/share/comitup/comitup/nm.py", line 200, in activate_connection_by_ssid
Jun 27 09:41:59 plexamp-lounge comitup[774]:     opath = nm.NetworkManager.ActivateConnection(connection, device, path)
Jun 27 09:41:59 plexamp-lounge comitup[774]:             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 09:41:59 plexamp-lounge comitup[774]:   File "<string>", line 6, in ActivateConnection
Jun 27 09:41:59 plexamp-lounge comitup[774]:   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
Jun 27 09:41:59 plexamp-lounge comitup[774]:     return self._connection.call_blocking(self._named_service,
Jun 27 09:41:59 plexamp-lounge comitup[774]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 09:41:59 plexamp-lounge comitup[774]:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 634, in call_blocking
Jun 27 09:41:59 plexamp-lounge comitup[774]:     reply_message = self.send_message_with_reply_and_block(
Jun 27 09:41:59 plexamp-lounge comitup[774]:                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 09:41:59 plexamp-lounge comitup[774]: dbus.exceptions.DBusException: org.freedesktop.NetworkManager.UnknownConnection: Connection>
Jun 27 09:42:20 plexamp-lounge systemd[1]: comitup.service: State 'stop-sigterm' timed out. Killing.
Jun 27 09:42:20 plexamp-lounge systemd[1]: comitup.service: Killing process 774 (comitup) with signal SIGKILL.
Jun 27 09:42:20 plexamp-lounge systemd[1]: comitup.service: Main process exited, code=killed, status=9/KILL
Jun 27 09:42:20 plexamp-lounge systemd[1]: comitup.service: Failed with result 'timeout'.
Jun 27 09:42:20 plexamp-lounge systemd[1]: Stopped comitup.service - Comitup Wifi Management.
Jun 27 09:42:20 plexamp-lounge systemd[1]: comitup.service: Consumed 1.183s CPU time.
-- Boot 5e247f731053407b9a328194adb62c4b --
Jun 27 09:42:25 plexamp-lounge systemd[1]: Starting comitup.service - Comitup Wifi Management...
Jun 27 09:42:26 plexamp-lounge comitup[736]: Traceback (most recent call last):
Jun 27 09:42:26 plexamp-lounge comitup[736]:   File "/usr/sbin/comitup", line 8, in <module>
Jun 27 09:42:26 plexamp-lounge comitup[736]:     sys.exit(main())
Jun 27 09:42:26 plexamp-lounge comitup[736]:              ^^^^^^
Jun 27 09:42:26 plexamp-lounge comitup[736]:   File "/usr/share/comitup/comitup/comitup.py", line 149, in main
Jun 27 09:42:26 plexamp-lounge comitup[736]:     statemgr.init_state_mgr(
Jun 27 09:42:26 plexamp-lounge comitup[736]:   File "/usr/share/comitup/comitup/statemgr.py", line 200, in init_state_mgr
Jun 27 09:42:26 plexamp-lounge comitup[736]:     states.init_states(
Jun 27 09:42:26 plexamp-lounge comitup[736]:   File "/usr/share/comitup/comitup/states.py", line 430, in init_states
Jun 27 09:42:26 plexamp-lounge comitup[736]:     nmmon.init_nmmon()
Jun 27 09:42:26 plexamp-lounge comitup[736]:   File "/usr/share/comitup/comitup/nmmon.py", line 190, in init_nmmon
Jun 27 09:42:26 plexamp-lounge comitup[736]:     set_device_listeners(modemgr.get_ap_device(), modemgr.get_link_device())
Jun 27 09:42:26 plexamp-lounge comitup[736]:                          ^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 09:42:26 plexamp-lounge comitup[736]:   File "/usr/share/comitup/comitup/modemgr.py", line 50, in get_ap_device
Jun 27 09:42:26 plexamp-lounge comitup[736]:     devs = nm.get_wifi_devices()
Jun 27 09:42:26 plexamp-lounge comitup[736]:            ^^^^^^^^^^^^^^^^^^^^^
Jun 27 09:42:26 plexamp-lounge comitup[736]:   File "/usr/share/comitup/comitup/nm.py", line 81, in get_wifi_devices
Jun 27 09:42:26 plexamp-lounge comitup[736]:     devices: Optional[List[nm.Device]] = get_devices()
Jun 27 09:42:26 plexamp-lounge comitup[736]:                                          ^^^^^^^^^^^^^
Jun 27 09:42:26 plexamp-lounge comitup[736]:   File "/usr/share/comitup/comitup/nm.py", line 65, in get_devices
Jun 27 09:42:26 plexamp-lounge comitup[736]:     device_list = nm.NetworkManager.GetDevices()
Jun 27 09:42:26 plexamp-lounge comitup[736]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 09:42:26 plexamp-lounge comitup[736]: AttributeError: 'NetworkManager' object has no attribute 'GetDevices'
Jun 27 09:42:26 plexamp-lounge systemd[1]: comitup.service: Main process exited, code=exited, status=1/FAILURE
Jun 27 09:42:26 plexamp-lounge systemd[1]: comitup.service: Failed with result 'exit-code'.
Jun 27 09:42:26 plexamp-lounge systemd[1]: Failed to start comitup.service - Comitup Wifi Management.
Jun 27 09:42:31 plexamp-lounge systemd[1]: comitup.service: Scheduled restart job, restart counter is at 1.
Jun 27 09:42:31 plexamp-lounge systemd[1]: Stopped comitup.service - Comitup Wifi Management.
Jun 27 09:42:31 plexamp-lounge systemd[1]: Starting comitup.service - Comitup Wifi Management...
Jun 27 09:42:33 plexamp-lounge systemd[1]: Started comitup.service - Comitup Wifi Management.
Jun 27 09:42:33 plexamp-lounge dnsmasq[848]: started, version 2.89 cachesize 150
Jun 27 09:42:33 plexamp-lounge dnsmasq[848]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntr>
Jun 27 09:42:33 plexamp-lounge dnsmasq[848]: warning: interface wlan0 does not currently exist
Jun 27 09:42:33 plexamp-lounge dnsmasq-dhcp[848]: DHCP, IP range 10.41.0.100 -- 10.41.0.150, lease time 10m
Jun 27 09:42:33 plexamp-lounge dnsmasq[848]: no servers found in /etc/resolv.conf, will retry
Jun 27 09:42:33 plexamp-lounge dnsmasq[848]: read /etc/hosts - 7 names
Jun 27 09:42:33 plexamp-lounge dnsmasq[848]: exiting on receipt of SIGTERM
Jun 27 10:23:26 plexamp-lounge systemd[1]: Stopping comitup.service - Comitup Wifi Management...
Jun 27 10:24:50 plexamp-lounge comitup[820]: Traceback (most recent call last):
Jun 27 10:24:50 plexamp-lounge comitup[820]:   File "/usr/share/comitup/comitup/states.py", line 381, in set_state_to
Jun 27 10:24:50 plexamp-lounge comitup[820]:     state_info.start_fn(0)
Jun 27 10:24:50 plexamp-lounge comitup[820]:   File "/usr/share/comitup/comitup/states.py", line 56, in wrapper
Jun 27 10:24:50 plexamp-lounge comitup[820]:     fn(reason)
Jun 27 10:24:50 plexamp-lounge comitup[820]:   File "/usr/share/comitup/comitup/states.py", line 123, in hotspot_start
Jun 27 10:24:50 plexamp-lounge comitup[820]:     activate_connection(hs_ssid, "HOTSPOT")
Jun 27 10:24:50 plexamp-lounge comitup[820]:   File "/usr/share/comitup/comitup/states.py", line 393, in activate_connection
Jun 27 10:24:50 plexamp-lounge comitup[820]:     nm.activate_connection_by_ssid(
Jun 27 10:24:50 plexamp-lounge comitup[820]:   File "/usr/share/comitup/comitup/nm.py", line 200, in activate_connection_by_ssid
Jun 27 10:24:50 plexamp-lounge comitup[820]:     opath = nm.NetworkManager.ActivateConnection(connection, device, path)
Jun 27 10:24:50 plexamp-lounge comitup[820]:             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 10:24:50 plexamp-lounge comitup[820]:   File "<string>", line 6, in ActivateConnection
Jun 27 10:24:50 plexamp-lounge comitup[820]:   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
Jun 27 10:24:50 plexamp-lounge comitup[820]:     return self._connection.call_blocking(self._named_service,
Jun 27 10:24:50 plexamp-lounge comitup[820]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 10:24:50 plexamp-lounge comitup[820]:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 634, in call_blocking
Jun 27 10:24:50 plexamp-lounge comitup[820]:     reply_message = self.send_message_with_reply_and_block(
Jun 27 10:24:50 plexamp-lounge comitup[820]:                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 10:24:50 plexamp-lounge comitup[820]: dbus.exceptions.DBusException: org.freedesktop.NetworkManager.UnknownConnection: Connection>
Jun 27 10:24:56 plexamp-lounge systemd[1]: comitup.service: State 'stop-sigterm' timed out. Killing.
Jun 27 10:24:56 plexamp-lounge systemd[1]: comitup.service: Killing process 820 (comitup) with signal SIGKILL.
Jun 27 10:24:56 plexamp-lounge systemd[1]: comitup.service: Main process exited, code=killed, status=9/KILL
Jun 27 10:24:56 plexamp-lounge systemd[1]: comitup.service: Failed with result 'timeout'.
Jun 27 10:24:56 plexamp-lounge systemd[1]: Stopped comitup.service - Comitup Wifi Management.
-- Boot 973c861cd0694b218f379eb6e4f27be6 --
Jun 27 10:25:00 plexamp-lounge systemd[1]: Starting comitup.service - Comitup Wifi Management...
Jun 27 10:25:01 plexamp-lounge systemd[1]: Started comitup.service - Comitup Wifi Management.
Jun 27 10:25:01 plexamp-lounge dnsmasq[844]: started, version 2.89 cachesize 150
Jun 27 10:25:01 plexamp-lounge dnsmasq[844]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntr>
Jun 27 10:25:01 plexamp-lounge dnsmasq[844]: warning: interface wlan0 does not currently exist
Jun 27 10:25:01 plexamp-lounge dnsmasq-dhcp[844]: DHCP, IP range 10.41.0.100 -- 10.41.0.150, lease time 10m
Jun 27 10:25:01 plexamp-lounge dnsmasq[844]: no servers found in /etc/resolv.conf, will retry
Jun 27 10:25:01 plexamp-lounge dnsmasq[844]: read /etc/hosts - 7 names
Jun 27 10:25:01 plexamp-lounge dnsmasq[844]: exiting on receipt of SIGTERM
davesteele commented 3 months ago

Comitup is having trouble with NetworkManager. Can you try adding "KillSignal=SIGKILL" to the [Service] section of the comitup.service file (and run "systemctl daemon-reload")?

BrianGilbert commented 3 months ago
[Unit]
Description=Comitup Wifi Management
After=NetworkManager.service Avahi.service
Requires=avahi-daemon.service
Documentation=man:comitup(8)

[Service]
Type=dbus
BusName=com.github.davesteele.comitup
ExecStart=/usr/sbin/comitup
# PrivateTmp=true
# PrivateDevices=yes
# PrivateNetwork=yes
# ProtectSystem=full
# ProtectHome=yes
# MountFlags=slave
# NoNewPrivileges=yes
Restart=always
RestartSec=5
KillSignal=SIGKILL

[Install]
WantedBy=multi-user.target

Added as above.

that seems to have resolved it! thanks @davesteele