The SnapRAID array config cannot be relocated out of its -sysconfdir default even with the documented override.
Starting snapraidd with both -c ...snapraidd.conf -C ...snapraid.conf (systemd ExecStart or CLI) has no effect on spawned engine commands. The runner only passes -c to the engine.
Repro:
- snapraidd 39d55cd (built with
./autogen.sh && ./configure --prefix=/usr --sysconfdir=/etc && make && sudo make install)
sudo cp /etc/snapraid.conf /home/user/snapraid.conf
- Start with:
sudo /usr/bin/snapraidd -c /etc/snapraidd.conf -C /home/user/snapraid.conf
- Trigger a task (REST
/schedule -> diff or probe)
- Inspect task log - engine argv is
snapraid -c /etc/snapraid.conf ...
Expected: snapraid -c /home/user/snapraid.conf ...
Actual: snapraid -c /etc/snapraid.conf ...
Env: Ubuntu 24.04 (x86_64, kernel 6.8.0-138-generic), systemd Type=forking service.
The SnapRAID array config cannot be relocated out of its -sysconfdir default even with the documented override.
Starting snapraidd with both
-c ...snapraidd.conf -C ...snapraid.conf(systemd ExecStart or CLI) has no effect on spawned engine commands. The runner only passes-cto the engine.Repro:
./autogen.sh && ./configure --prefix=/usr --sysconfdir=/etc && make && sudo make install)sudo cp /etc/snapraid.conf /home/user/snapraid.confsudo /usr/bin/snapraidd -c /etc/snapraidd.conf -C /home/user/snapraid.conf/schedule-> diff or probe)snapraid -c /etc/snapraid.conf ...Expected:
snapraid -c /home/user/snapraid.conf ...Actual:
snapraid -c /etc/snapraid.conf ...Env: Ubuntu 24.04 (x86_64, kernel 6.8.0-138-generic), systemd Type=forking service.