Comments (6)
I'm controlling mumudvb with systemd, which ensures it is faster up/down.
In another issue we discussed the card=auto statement, and what this would do to the traditional pid file system (bound to the card, not the frequency/polarization/position or simple Network ID).
As I worked my way through the systemd (everything is new) horror, I would have to say, this has much more future and potential as spawning extra processes.
As a simple solution outside the main source I can recommend using some IPC, even making a NOTIFY like session in the http "daemon" part. This keeps the process management out of the streaming software (keeping it portable across libc/kernels etc.), and also solves the problem.
Right now I'm tail -f .. | read | case on the log, to have the same effect. inotify on the parsed config would only add fractions of a second delay.
To summarize:
- inotifywatch the pid/config
- tail the log
- proper systemd
- some IPC concept
are my arguments against throwing more logic in the core software, and having related software still attached.
I hope some of this solutions help you in the short term.
from mumudvb.
The trigger from #25 could include this use-case, as mumudvb definitely shouldn't wait for the external to finish before setting up ... the only use-case for a pre-up would be to manipulate the IP Stack allowing extra multicast addresses. But this is far fetched. everything else (including pre-down) can be run after a trigger for channel down has been fired, as mumudvb doesn't (and shouldn't) wait for removing a multicast when the channel disappeared.
from mumudvb.
maybe I should note that I'm the one working mumudvb+systemd, still learning on dbus to handle my notifying need.
from mumudvb.
Perfect ! please keep us updated
THanks
2013/12/5 m0yellow [email protected]
maybe I should note that I'm the one working mumudvb+systemd, still
learning on dbus to handle my notifying need.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-29886018
.
from mumudvb.
As Braice doesn't like dependencies ;) this rules out snmp, dbus, and whatever pulls in another library. I would count the options as HTTP Push, HTTP get/post (without libcurl this gets nasty really quick), handcrafted snmp (uuuueehhhh run run ….), xmpp (already too much hand crafted xml without dtd in here).
I would suggest exploring the http push route, we already have most data in json, this would be a perfect fit for a websocket implementation. I recently discovered FreeSWITCH uses this for a live view of running calls http://wiki.freeswitch.org/wiki/Freeswitch_Portal .
This would allow to close this and #25 in one go.
from mumudvb.
I don't like mandatory dependencies, but if you have easy example with dbus or other I think it is worth having a look into it.
from mumudvb.
Related Issues (20)
- Missing label in prometheus metrics
- Make fails with error: ‘curr_channel’ undeclared (unicast_monit.c) HOT 3
- SDP file? HOT 2
- mumudvb T2 HD tv doesnt work HOT 4
- 100% CPU load with current master HOT 9
- Build error in ts.h HOT 5
- [BUG] reported version is wrong HOT 2
- is there a way to set user:password for streaming? HOT 2
- mumudvb not discramble biss channel HOT 8
- Integrate stats available via dvbv5 HOT 3
- DVB-T channels down. Cannot gracefully exit mumudvb. HOT 2
- No SNR data on Ubuntu 22.04.1 LTS with Digital Devices Max M4 HOT 5
- Configuration error or a bug? HOT 17
- ICAM support [feature request]
- Signal lock and stats per each Frontend HOT 1
- MTN Channels on 4.9 East HOT 1
- Question: Filtering PIDs during TS capture HOT 2
- hardware descrambling HOT 17
- bug or hardware limitations ? HOT 2
- Unclosed bracket in state json HOT 5
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 mumudvb.