Skip to content

Instantly share code, notes, and snippets.

@johannrichard
Last active May 23, 2024 16:15
Show Gist options
  • Save johannrichard/0ad0de1feb6adb9eb61a to your computer and use it in GitHub Desktop.
Save johannrichard/0ad0de1feb6adb9eb61a to your computer and use it in GitHub Desktop.

Revisions

  1. johannrichard revised this gist Jan 6, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion homebridge
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Defaults / Configuration options for homebridge
    # The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
    HOMEBRIDGE_OPTS=-U /var/homebridge
    HOMEBRIDGE_OPTS=-U /var/lib/homebridge

    # If you uncomment the following line, homebridge will log more
    # You can display this via systemd's journalctl: journalctl -f -u homebridge
  2. johannrichard revised this gist Jan 6, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions homebridge.service
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,8 @@ After=syslog.target network-online.target
    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/local/bin/homebridge $HOMEBRIDGE_OPTS
    Restart=on-failure
    RestartSec=10
  3. johannrichard revised this gist Aug 9, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion homebridge.service
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    [Unit]
    Description=Node.js HomeKit Server
    After=syslog.target
    After=syslog.target network-online.target

    [Service]
    Type=simple
  4. johannrichard revised this gist Aug 9, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion homebridge.service
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ After=syslog.target
    Type=simple
    User=homebridge
    EnvironmentFile=/etc/default/homebridge
    ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS
    ExecStart=/usr/local/bin/homebridge $HOMEBRIDGE_OPTS
    Restart=on-failure
    RestartSec=10
    KillMode=process
  5. johannrichard revised this gist Jan 7, 2016. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion homebridge
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,7 @@
    # Defaults / Configuration options for homebridge
    # The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
    HOMEBRIDGE_OPTS=-U /var/homebridge
    DEBUG=*

    # If you uncomment the following line, homebridge will log more
    # You can display this via systemd's journalctl: journalctl -f -u homebridge
    # DEBUG=*
  6. johannrichard revised this gist Jan 7, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion homebridge
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    HOMEBRIDGE_OPTS=-u /var/homebridge
    HOMEBRIDGE_OPTS=-U /var/homebridge
    DEBUG=*
  7. johannrichard revised this gist Jan 7, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion homebridge.service
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ After=syslog.target
    Type=simple
    User=homebridge
    EnvironmentFile=/etc/default/homebridge
    ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS >> /var/log/homebridge.log 2>> /var/log/homebridge.err
    ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS
    Restart=on-failure
    RestartSec=10
    KillMode=process
  8. johannrichard revised this gist Jan 7, 2016. 2 changed files with 3 additions and 3 deletions.
    3 changes: 2 additions & 1 deletion homebridge
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    HOMEBRIDGE_OPTS=-u /var/homebridge
    HOMEBRIDGE_OPTS=-u /var/homebridge
    DEBUG=*
    3 changes: 1 addition & 2 deletions homebridge.service
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,8 @@ After=syslog.target
    [Service]
    Type=simple
    User=homebridge
    Environment=DEBUG=*
    EnvironmentFile=/etc/default/homebridge
    ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS >> "/var/log/homebridge.log" 2>> "/var/homebridge.err"
    ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS >> /var/log/homebridge.log 2>> /var/log/homebridge.err
    Restart=on-failure
    RestartSec=10
    KillMode=process
  9. johannrichard revised this gist Jan 7, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions homebridge.service
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,12 @@ After=syslog.target

    [Service]
    Type=simple
    User=homebridge
    Environment=DEBUG=*
    EnvironmentFile=/etc/default/homebridge
    ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS >> "/var/log/homebridge.log" 2>> "/var/homebridge.err"
    Restart=on-failure
    RestartSec=10
    KillMode=process

    [Install]
  10. johannrichard revised this gist Jan 7, 2016. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions homebridge.service
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,11 @@ Description=Node.js HomeKit Server
    After=syslog.target

    [Service]
    Type=simple
    EnvironmentFile=/etc/default/homebridge
    ExecStart=DEBUG=* /usr/bin/homebridge $HOMEBRIDGE_OPTS >> "/var/log/homebridge.log" 2>> "/var/homebridge.err"
    Restart=on-abort
    ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS >> "/var/log/homebridge.log" 2>> "/var/homebridge.err"
    Restart=on-failure
    KillMode=process

    [Install]
    WantedBy=multi-user.target
  11. johannrichard revised this gist Jan 7, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion homebridge.service
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ Description=Node.js HomeKit Server
    After=syslog.target

    [Service]
    EnvironmentFile=/etc/conf.d/homebridge
    EnvironmentFile=/etc/default/homebridge
    ExecStart=DEBUG=* /usr/bin/homebridge $HOMEBRIDGE_OPTS >> "/var/log/homebridge.log" 2>> "/var/homebridge.err"
    Restart=on-abort

  12. johannrichard revised this gist Jan 7, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions homebridge
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    HOMEBRIDGE_OPTS=-u /var/homebridge
  13. johannrichard created this gist Jan 7, 2016.
    11 changes: 11 additions & 0 deletions homebridge.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    [Unit]
    Description=Node.js HomeKit Server
    After=syslog.target

    [Service]
    EnvironmentFile=/etc/conf.d/homebridge
    ExecStart=DEBUG=* /usr/bin/homebridge $HOMEBRIDGE_OPTS >> "/var/log/homebridge.log" 2>> "/var/homebridge.err"
    Restart=on-abort

    [Install]
    WantedBy=multi-user.target