On Thu, 20 Jun 2019 11:56:43 +0200 "Carlos E.R." <robin.listas@gmx.es> wrote:
On 20/06/2019 07.25, Mathias Homann wrote:
Am Mittwoch, 19. Juni 2019, 19:24:22 CEST schrieb Carlos E. R.:
On 19/06/2019 18.00, Per Jessen wrote:
I'm trying to start spamd on Leap 15.1 - somehow systemd does not recognise it has been started and then kills it.
# systemctl cat spamd [snip] [Service] Type=forking PIDFile=/var/run/spamd.pid ExecStartPre=/bin/bash -c "sa-update || true" EnvironmentFile=-/etc/sysconfig/spamd ExecStart=/usr/sbin/spamd $SPAMD_ARGS -r /var/run/spamd.pid ExecReload=/usr/bin/kill -HUP $MAINPID
Yes, you have to increase the timeout.
/etc/systemd/system.conf
DefaultTimeoutStartSec=100s #DefaultTimeoutStopSec=90s
I don't know if it is possible to change the timeout for an specific service only.
systemctl edit spamd.service
OHHH! :-o
Cute! :-)
and then you put in that file that opens in your editor:
[Service] TimeoutSec=5min
File /etc/systemd/system/spamd.service.d/.#override.conf4232f2d9628a1852 saved If '[Service]' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf [Service]
(see below, end of post)
Two files appear:
Legolas:~ # l /etc/systemd/system/spamd.service.d/ total 12 drwxr-xr-x 2 root root 4096 Jun 20 11:45 ./ -rw-r--r-- 1 root root 0 Jun 20 11:44 .#override.conf4232f2d9628a1852~ drwxr-xr-x 16 root root 4096 Jun 20 11:44 ../ -rw-r--r-- 1 root root 26 Jun 20 11:45 override.conf
The first one seems to be an empty backup, created by jstar on save file. If I edit several times, I get several random backups:
Sounds most likely to be a bug in your editor - jstar? I would try say nano and see if the problem persists. If so, it must be a bug in the way systemd edit is calling/using the editor but then I'd expect a lot more people to be encountering it. Anyway, a bit more investigation needed to track it down. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org