How to start Owserver on boot?

Hi, I am moving from 1.x to 2. I have just installed Openhab with hassle-free setup. I also installed owfs sudo apt-get install owfs. Configuration is set, but I don’t know how to set owserver to start on boot. Could you please give me instructions?

there should be a service file for that, I guess that

sudo systemctl start owserver.service #to start the server once as a service
sudo systemctl enable owserver.service #setup systemd to start the service automatically

should do the job, but did you install owserver or just owfs? I’m pretty sure these are different packages.

Hi Udo,

Thank you for your help but it doesn’t work. The commands seems to work but the service does not start at boot. When I list services with systemctl commant owfs, owserver, and owhttpd as “exited”, but i don’t know wahat does it mean exactly.

If I try to run the service induvidually I get the following ‘acces denied’ error.

[18:51:10] openhabian@openHABianPi:~$ systemctl start owhttpd
Failed to start owhttpd.service: Access denied

It does not work neither with sudo. When I use sudo the service still doesn’t start and I don’t get any feedback.

I use a clean openhabian install. :confused: Do you have any idea?

so whats the output of

systemctl status owserver.service

?

hi Udo,

Thank you for your support. This is what I get:

[21:02:45] openhabian@openHABianPi:~$ systemctl status owserver.service
● owserver.service - LSB: 1-wire TCP server
Loaded: loaded (/etc/init.d/owserver)
Active: active (exited) since Sun 2017-09-24 19:32:52 CEST; 1 day 1h ago
Process: 635 ExecStart=/etc/init.d/owserver start (code=exited, status=0/SUCCESS)