On Wed, 11 Oct 2017 11:43:34 +0200 Alastair Porter <alast...@porter.net.nz> wrote: > Package: gearman-job-server > Version: 1.0.6-5 > > Hello, > When running gearman-job-server under wheezy, configuration options to > give to the server on startup could be added to > /etc/default/gearman-job-server and they would be picked up by the > init script on startup. > > On stretch, with systemd, the startup file, > /lib/systemd/system/gearman-job-server.service, has a fixed ExecStart > line: > > ExecStart=/usr/sbin/gearmand --listen=127.0.0.1 > --pid-file=/run/gearman/server.pid > --log-file=/var/log/gearman-job-server/gearman.log > > and it appears that this cannot be further configured without creating > an overlay file in /etc/systemd/system/docker.service.d/ > In my case, I want to change the listen address to 0.0.0.0 > > Is a systemd overlay now the recommended way to change startup options > for gearman-job-server? > > Thanks > >
I recently ran into an similiar issue. The config file /etc/default/gearman-job-server is not referenced in systemd service unit file, but could be included like this: EnvironmentFile=/etc/default/gearman-job-server ExecStart=/usr/sbin/gearmand --pid-file=/run/gearman/server.pid --log-file=/var/log/gearman-job-server/gearman.log $PARAMS It would be great if that could somehow find its way into the debian package. Please also note that there is no longer any need to hardcode the --listen parameter in the service file, since it is already defined and included through /etc/default/gearman-job-server with the above configuration.