Good daemon script for openhab on raspberry?

415 views
Skip to first unread message

Martin Tellblom

unread,
Feb 6, 2013, 6:15:11 AM2/6/13
to ope...@googlegroups.com
Anyone that has a good daemon script for openhab so it starts automaticly?
 
I have tested two that I found but none of them works well.
 
 

Martin Tellblom

unread,
Feb 6, 2013, 3:31:21 PM2/6/13
to ope...@googlegroups.com
After a lot of testing with different kind of startup script i got one almost working (it starts :) )
BUT it gives me this error:
 

21:25:11.718 WARN  o.o.c.core.ConfigDispatcher[:192] - Main openHAB configuration file 'configurations/openhab.cfg' does not exist.
 
Is there a way to set this path i the java arguments? I mean like " -Dlogback.configurationFile=/opt/openhab/configurations/logback.xml -Dfelix.fileinstall.dir=/opt/openhab/addons -Djava.library.path=/opt/openhab/lib" ?
 

 
 
 

Kai Kreuzer

unread,
Feb 6, 2013, 3:51:27 PM2/6/13
to ope...@googlegroups.com
Hi Martin,

Is there a way to set this path i the java arguments? I mean like " -Dlogback.configurationFile=/opt/openhab/configurations/logback.xml -Dfelix.fileinstall.dir=/opt/openhab/addons -Djava.library.path=/opt/openhab/lib" ? 

Yes, this should work with the parameter "openhab.configdir".

Regards,
Kai


Martin Tellblom

unread,
Feb 7, 2013, 1:54:32 AM2/7/13
to ope...@googlegroups.com
Thanks I try that 

Victor Belov

unread,
Feb 7, 2013, 1:59:26 AM2/7/13
to ope...@googlegroups.com
Hi,

Attached is my script, which is based on Thomas's one. I run it successfully on Raspberry default system. Don't forget to correct paths. Just put the script to /etc/init.d and add it to appropriate run levels.

Best regards,
Victor Belov


On Thu, Feb 7, 2013 at 10:54 AM, Martin Tellblom <tell...@gmail.com> wrote:
Thanks I try that 

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

openhab
Message has been deleted

Romain Bourdy

unread,
Feb 7, 2013, 3:17:55 AM2/7/13
to ope...@googlegroups.com
Hi Victor,

 Thanks for Sharing but Google Group doesn't show any attachement. Would also appreciate the script.
I'm starting OpenHAB in a screen right after boot but it's not that reliable.

Rgds,
-Romain

Victor Belov

unread,
Feb 7, 2013, 3:23:29 AM2/7/13
to ope...@googlegroups.com
Hi,

Probably mailing list is filtering attachments of shell scripts :-)


Best regards,
Victor Belov
Message has been deleted

Victor Belov

unread,
Feb 15, 2013, 4:17:49 AM2/15/13
to ope...@googlegroups.com
Hey,

Maybe it's a permission problem?

Sent from my iPhone

On 15.02.2013, at 10:13, Martin Tellblom <tell...@gmail.com> wrote:

 
Thanks Victor it worked after I moved my installation :)
 
If I install under /opt/openhab it wont work, but if i move it to /home/martin/openhab it does :)
 
Thanks again for the script
/Martin
Reply all
Reply to author
Forward
0 new messages