wburgers / Open-Zwave-Socket-Server

Open-Zwave Socket Server
http://willemburgers.nl/zwave/open-zwave-socket-server
9 stars 8 forks source link

Feature Request (openzwave-server daemonize mode) #11

Open hellracer opened 8 years ago

hellracer commented 8 years ago

Hi Willem,

I believed we have a small discussion on this I'm going to ask this again as a place holder for future development, right now in my use case the openzwave-server binary has been invoke under screen session which is great, but daemonized mode is the way to go in my humbly opinion.

I don't know if this request justify the amount of time to code and make this change, I think this is just worth a shot :), Please close this if request if you think it's not that worth.

hellracer commented 8 years ago

alternatively I think we can run this using djb daemontools (http://cr.yp.to/daemontools.html) or xinetd if I can figure out how i'll let you know so that we can create a small howto to make this happen, but still we need some small code change so that the console output should be written on a syslog instead of stdout.

wburgers commented 8 years ago

Hi,

Right I remember. I run my server under screen as well. I have no experience creating daemonized apps but it is sure worth looking at.

Let me know what you find out. I'll put it on milestone/release 0.2.1 for now. I don't know if it is all doable in the upcoming holiday, but we'll find out. I've only got 1 week off from work, so I hope I can get at least #8 and #9 done.

wburgers commented 8 years ago

I'm sorry I haven't been able to fix this just yet. I am currently thinking about ways to refactor the entire main.cpp file. It became a way too large blob of code. As it is now, it is hard to include a daemonized mode. Therefore I want to refactor first. I don't have much time at all, so it will probably take forever...