PaesslerAG / maker-monday

Maker Monday related stuff
BSD 3-Clause "New" or "Revised" License
19 stars 6 forks source link

Home assistant not starting after changes to home-assistant@homeassistant.service #2

Closed DickSwart closed 6 years ago

DickSwart commented 6 years ago

After I made the changes to home-assistant@homeassistant.service my home assistant is not starting up on reboot.

home-assistant@homeassistant.service file content

[Unit]
Description=Home Assistant for %i
After=network.target mosquitto.service
Requires= mosquitto.service

[Service]
Type=simple
User=%i
ExecStart=/srv/homeassistant/bin/hass
SendSIGKILL=no

[Install]
WantedBy=multi-user.target

MQTT broker is started but HA never starts up.

After restart I do a: sudo netstat --tcp --listening --programs --numeric

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      548/smbd            
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      544/sshd            
tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      558/mosquitto       
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      548/smbd            
tcp6       0      0 :::139                  :::*                    LISTEN      548/smbd            
tcp6       0      0 :::22                   :::*                    LISTEN      544/sshd            
tcp6       0      0 :::1883                 :::*                    LISTEN      558/mosquitto       
tcp6       0      0 :::445                  :::*                    LISTEN      548/smbd          

I did a wget from your repo for the mosquitto.service. Please can you help!

bhupfer commented 6 years ago

I've pushed a new systemd service file to the repository.