I use the sysfs interface to operate a sprinkler valve attached to GPIO25.
The sprinklers are turned on and off by echo(1) commands in crontab(7).
I'd like to replace Raspberry Pi OS with plain old Debian.
I tried the nightly Bookworm build. I like it.
https://wiki.debian.org/RaspberryPiImages
The sysfs interface is deprecated, in favor of a multi-user friendly device interface API. (A device node and an ioctl structure.) The API comes with a set of command line tools that don't directly replace what I could do with
echo 1 > /sys/class/gpio/gpio25/valuebefore.
What's the Debian way to set a GPIO pin in a persistent state from a cron job? I found the gpiod package, and I can set pins high or low with gpioset(1), but the effect is ephemeral, it disappears when gpioset exits. I found a gpiod daemon on github https://github.com/maquefel/gpiod but as far as I can tell (no documentation) it's only for monitoring inputs.
I suppose I need a daemon that will own the pin continuously and listen for commands on a named pipe or a socket. There's no daemon in the gpiod package https://packages.debian.org/bookworm/gpiod.