This is feature request. Please add ability to specify different pid file at cmdline time so it will be able to run multiple daemons with different options specified only at cmdline time and the same config file (so no need to duplicate config file just to change some options. Something like --pidfile /tmp/other.pid
The latest code in the git repository now has a general option that allows the user to specify config overrides via the command line. This lets you specify the pidfile like this: rsync --daemon --dparam pidfile=/tmp/other.pid or rsync --daemon -M pidfile=/tmp/other.pid You can adjust any global or default value using that option, and it will supersede a global/default value in the config file (but will not supersede an explicitly specified module value in a module's definition).
Could this be backported to 3.0.x (3.0.4) ?
Created attachment 3425 [details] The --dparam (-M) daemon option for 3.0.4. The 3.0.x branch is only getting bugfixes, so it won't be getting this new feature. It is easy to turn the recent git check-in into a patch that can be manually applied to 3.0.4pre1, though (it just needed some minor tweaks).
Thanks, backport patch works well for me.