homebridge能手动启动。但是homebridge.service服务启动不了,错误如下,请问是什么原因? pi@raspberrypi:~ $ sudo systemctl start homebridge pi@raspberrypi:~ $ sudo systemctl status homebridge
● homebridge.service - Node.js HomeKit Server
Loaded: loaded (/etc/systemd/system/homebridge.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2017-12-23 00:31:22 CST; 2s ago
Process: 3408 ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS (code=exited, status=1/FAILURE)
Main PID: 3408 (code=exited, status=1/FAILURE)
Dec 23 00:31:22 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.
Dec 23 00:31:22 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
/etc/systemd/system/homebridge.service内容:
[Unit]# Defaults / Configuration options for homebridge
Description=Node.js HomeKit Server
After=syslog.target network-online.target
[Service]
Type=simple
User=homebridge
EnvironmentFile=/etc/default/homebridge
# Adapt this to your specific setup (could be /usr/bin/homebridge)
# See comments below for more information
ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS
Restart=on-failure
RestartSec=10
KillMode=process
[Install]
WantedBy=multi-user.target