#878224 changing gearman-job-server parameters with systemd requires overlay file

Package:
gearman-job-server
Source:
gearmand
Description:
Job server for the Gearman distributed job queue
Submitter:
Alastair Porter
Date:
2020-11-19 05:45:07 UTC
Severity:
normal
#878224#5
Date:
2017-10-11 09:43:34 UTC
From:
To:
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

#878224#10
Date:
2017-10-11 09:50:15 UTC
From:
To:
Sorry, of course I meant
/etc/systemd/system/gearman-job-server.service.d/ here (I was copying
from an example...)

#878224#15
Date:
2017-10-11 15:58:24 UTC
From:
To:
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.

#878224#20
Date:
2020-11-19 05:43:30 UTC
From:
To: