sni / mod_gearman

Distribute Naemon Host/Service Checks & Eventhandler with Gearman Queues. Host/Servicegroups affinity included.
http://www.mod-gearman.org
GNU General Public License v3.0
122 stars 42 forks source link

pidfile path in centos7 systemd module #94

Closed dmitriykulishenko closed 7 years ago

dmitriykulishenko commented 8 years ago

in centos7 systemd module the worker's pidfile path is hardcoded, and overrides parameter in worker.conf so, if you change default pid path in worker.conf it still uses the path from systemd script (/var/mod_gearman2 by default)

dmitriykulishenko commented 8 years ago

this issue persists on version3 too mod_gearman-3.0.0b1-1.el7.centos.x86_64

sni commented 7 years ago

I'd say this works as intented. Mod-Gearman read the command line arguments from left to right and the last one overwrites the previous setting. Also i think its a bad idea to change the pid file location when using systemd. Or at least change it in the services file and in the config of mod-gearman.