changeset 2 | 2556522a2a45 |
parent 0 | df042396074e |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/homebridge/templates/homebridge.service.j2 Sun Feb 09 12:05:37 2020 -0600 @@ -0,0 +1,16 @@ +# {{ansible_managed}} + +[Unit] +Description=Homebridge + +[Service] +User={{homebridge_user}} +Group={{homebridge_user}} +Restart=always +RestartSec={{homebridge_restart_sec}} + +WorkingDirectory={{homebridge_dir}} +ExecStart=/usr/bin/node /opt/{{nodejs_dir}}/bin/homebridge -U {{homebridge_dir}} + +[Install] +WantedBy=default.target