Issue with Homebridge as a Service with Broadlink
Hey I'm having an issue with Broadlink only when I run Homebridge as a server.  It works great if I run homebridge from the command line.  I followed the instructions [here](https://timleland.com/setup-homebridge-to-start-on-bootup/) and my JSON and service is located in  var/homebridge and /usr/local/bin/homebridge  as per steps 2.1 and 5


> Mar 11 12:29:42 raspberrypi homebridge[8551]: [2018-3-11 12:29:42] Registering platform 'homebridge-legacy-plugins.LIFx'
Mar 11 12:29:42 raspberrypi homebridge[8551]: [2018-3-11 12:29:42] Registering platform 'homebridge-legacy-plugins.SmartThings'
Mar 11 12:29:42 raspberrypi homebridge[8551]: [2018-3-11 12:29:42] Registering platform 'homebridge-legacy-plugins.TelldusLive'
Mar 11 12:29:42 raspberrypi homebridge[8551]: [2018-3-11 12:29:42] Registering platform 'homebridge-legacy-plugins.ZWayServer'
Mar 11 12:29:42 raspberrypi homebridge[8551]: [2018-3-11 12:29:42] ---
Mar 11 12:29:43 raspberrypi homebridge[8551]: [2018-3-11 12:29:43] Loaded plugin: homebridge-smartthings
Mar 11 12:29:43 raspberrypi homebridge[8551]: [2018-3-11 12:29:43] Registering platform 'homebridge-smartthings.SmartThings'
Mar 11 12:29:43 raspberrypi homebridge[8551]: [2018-3-11 12:29:43] ---
Mar 11 12:29:44 raspberrypi homebridge[8551]: [2018-3-11 12:29:44] Loaded plugin: homebridge-smartthings-routine
Mar 11 12:29:44 raspberrypi homebridge[8551]: [2018-3-11 12:29:44] Registering accessory 'homebridge-smartthings-routine.SmartThingsRoutine'
Mar 11 12:29:44 raspberrypi homebridge[8551]: [2018-3-11 12:29:44] ---
Mar 11 12:29:44 raspberrypi homebridge[8551]: [2018-3-11 12:29:44] Loaded plugin: homebridge-smartthings-routine-triggers
Mar 11 12:29:44 raspberrypi homebridge[8551]: [2018-3-11 12:29:44] Registering accessory 'homebridge-smartthings-routine-triggers.HomebridgeRoutineTrigger'
Mar 11 12:29:44 raspberrypi homebridge[8551]: [2018-3-11 12:29:44] ---
Mar 11 12:29:45 raspberrypi homebridge[8551]: [2018-3-11 12:29:45] Loaded plugin: homebridge-broadlink-rm
Mar 11 12:29:45 raspberrypi homebridge[8551]: [2018-3-11 12:29:45] Registering platform 'homebridge-broadlink-rm.BroadlinkRM'
Mar 11 12:29:45 raspberrypi homebridge[8551]: [2018-3-11 12:29:45] ---
Mar 11 12:29:45 raspberrypi homebridge[8551]: [2018-3-11 12:29:45] Loaded config.json with 0 accessories and 2 platforms.
Mar 11 12:29:45 raspberrypi homebridge[8551]: [2018-3-11 12:29:45] ---
Mar 11 12:29:45 raspberrypi homebridge[8551]: [2018-3-11 12:29:45] Loading 2 platforms...
Mar 11 12:29:45 raspberrypi homebridge[8551]: [2018-3-11 12:29:45] [SmartThings] Initializing homebridge-smartthings.SmartThings platform...
Mar 11 12:29:45 raspberrypi homebridge[8551]: [2018-3-11 12:29:45] [SmartThings] Fetching Smart Things devices.
Mar 11 12:29:45 raspberrypi homebridge[8551]: [2018-3-11 12:29:45] [Broadlink RM] Initializing BroadlinkRM platform...
Mar 11 12:29:45 raspberrypi homebridge[8551]**: /usr/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:90**
Mar 11 12:29:45 raspberrypi homebridge[8551]:                     **throw err0;**
Mar 11 12:29:45 raspberrypi homebridge[8551]:                     ^
Mar 11 12:29:45 raspberrypi homebridge[8551]: **Error: EACCES: permission denied, mkdir '/home/homebridge'**
Mar 11 12:29:45 raspberrypi homebridge[8551]:     at Object.fs.mkdirSync (fs.js:905:18)
Mar 11 12:29:45 raspberrypi homebridge[8551]:     at sync (/usr/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:71:13)
Mar 11 12:29:45 raspberrypi homebridge[8551]:     at sync (/usr/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:77:24)
Mar 11 12:29:45 raspberrypi homebridge[8551]:     at Function.sync (/usr/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:77:24)
Mar 11 12:29:45 raspberrypi homebridge[8551]:     at LocalStorage.parseStorageDirSync (/usr/lib/node_modules/homebridge-broadlink-rm/node_modules/node-persist/src/local-storage.js:619:2
Mar 11 12:29:45 raspberrypi homebridge[8551]:     at LocalStorage.initSync (/usr/lib/node_modules/homebridge-broadlink-rm/node_modules/node-persist/src/local-storage.js:142:14)
Mar 11 12:29:45 raspberrypi homebridge[8551]:     at Object.nodePersist.initSync (/usr/lib/node_modules/homebridge-broadlink-rm/node_modules/node-persist/src/node-persist.js:37:32)
Mar 11 12:29:45 raspberrypi homebridge[8551]:     at Object.init (/usr/lib/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/helpers/persistentState.js:10:15)
Mar 11 12:29:45 raspberrypi homebridge[8551]:     at new HomebridgePlatform (/usr/lib/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/platform.js:14:21)
Mar 11 12:29:45 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE

Here's the content of /home

> cd /home/
pi@raspberrypi:/home $ ls
pi


Thanks!