Owserver (owfs-server) configuration (file?)

Hallo. I’ve installed Fedora minimal on a rpi3b and it’s working well, incl dtparams. I wanted to connect my usb-adapter and onewire network to it, as I have to a similar rpi running raspbian light.

So I installed owfs-server (there is no collective “owfs” package on Fedora it seems. Which appears a plus). As far as I can tell (via systemctl status owserver as well as trying to talk to it at tcp:4304) it is running however by default it won’t talk to usb devices so it won’t talk to my network.
I have located no owfs.conf like Debian uses at /etc or elsewere and putting one there seems pretty disregarded by the owserver service.
The service unit file has ExecStart=/usr/bin/owserver --w1 but how do I configure it on a Fedora / rhel system?

I suppose I might try changing that unit file and supplying the necessary start params OWSERVER(1) manual page but that seems slightly less user friendly than a config file. If that’s the way it’s meant to be done on Fedora /rhel however I have no issues with it : )

Thanks for any input.

You need to provide a config file, see

https://owfs.org/uploads/owfs.html

An OWFS configuration file is specified on the command line:

owfs -c config_file [other options]
    The file name is arbitrary, there is no default configuration file used.
1 Like

You probably want something like this:

sudo dnf install owfs-server
sudo mkdir -p /etc/systemd/system/owserver.service.d
sudo tee /etc/systemd/system/owserver.service.d/override.conf << EOF > /dev/null
[Service]
ExecStart=
ExecStart=owserver --w1 -c %E/%p.conf
EOF
sudo tee /etc/owserver.conf << EOF > /dev/null
option = value
...
EOF
sudo systemctl daemon-reload
sudo systemctl enable owserver.service
sudo systemctl restart owserver.service

Many thanks to both of you!

I did sudo systemctl edit owserver which created the mentioned directory and override file. After daemon reload:

● owserver.service - Backend server for 1-wire control
     Loaded: loaded (/usr/lib/systemd/system/owserver.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
             /etc/systemd/system/owserver.service.d
             └─override.conf

and the owserver appears to adhere to the contents of the config file.

1 Like