install Home Assistant core on vultr
0
sudo nano -w /etc/systemd/system/[email protected]
[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/local/bin/hass
[Install]
WantedBy=multi-user.target
重载服务配置: sudo systemctl --system daemon-reload
将服务加入自启动: sudo systemctl enable home-assistant@pi
手工启动服务: sudo systemctl start home-assistant@pi
查看系统启动服务: systemctl list-units --type service