Comments (8)
Hi @farstreet Jurgen!
At the moment I haven't implemented journalctl
-logging yet.
Have you added something to the com.homebridge.server.plist
?
But yes in theory the standard logging works as follows (because Homebridge doesn't support it by itself 👎 ):
- I take the normal output to the console,
- pipe it to a file,
- read the file by the server and
- present it to the user on a webpage.
So the fact that is important is the pipe to a file, not quite sure how to do that in the *.plist
-file but I am pretty sure, that macOS is supporting logs for launchctl
.
I'll have a look at it and I'll keep you posted for updates!
from homebridge-server.
They might actually not anymore. Seems like I'll have to go for another service that loads Homebridge automatically at boot or when the process gets killed for whatever reason.
Anything you suggest? Preferably documented somewhere as I realized how far away the stuff I learned in school is in my memory now.
from homebridge-server.
Another option might be to use an Automator program!
Just:
- open Automator.app (preinstalled on every macOS),
- create a new program,
- Add the
Execute Shell Script
and - write something like in the picture.
To copy-paste you can use:
export PATH=$PATH:/usr/local/bin/
/usr/local/bin/homebridge -D -U ~/.homebridge > ~/.homebridge/output.log 2>&1 &
Finally add the ~/.homebridge/output.log
to homebridge's config.json
.
Then you could add this new Automator program to your accounts login-items and it will automatically launch on every login :)
That is not as convenient in case of an automatic restart in any case of error, but in my opinion the error should always be investigated instead of ignored ;)
from homebridge-server.
Looks good. Trying it tonight :)
from homebridge-server.
how to configure with journalctl?
from homebridge-server.
@ageorgios See https://github.com/gismo141/homebridge-server/wiki/Usage#systemd on how to configure the plugin to use the journalctl-produced-log.
from homebridge-server.
@farstreet I've now found a way to log with launchd
!
See my hints at: https://github.com/gismo141/homebridge-server/wiki/Usage#launchd
Please post here if you have any further questions about this topic.
from homebridge-server.
I'll try it. Thanks for the update!
from homebridge-server.
Related Issues (20)
- Confirmation window before removing HOT 1
- Log page HOT 1
- Does not work with journalctl and sudo HOT 2
- can get it to work right HOT 3
- Reboot issue on MacOS HOT 5
- Platform not loading HOT 2
- Trying to install homebridge-server HOT 8
- npm install|uninstall not working HOT 1
- try the 'Log' page then throw this HOT 3
- Possibility to define the "system" log name HOT 1
- Platform does not load HOT 1
- Understanding the installation process HOT 2
- Can make it to work - please assist HOT 2
- Installing Error HOT 10
- log - use of journalctl requires sudo HOT 3
- Graphics changed? HOT 8
- Cannot read property HOT 2
- restart not working (Mac launchd) HOT 3
- Server working, but the site closes upon trying to make a change. HOT 1
- Nobee needs help! What is my problem? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-server.