[systemd-devel] stopping timed out. Killing ?
Steve Traylen
steve.traylen at cern.ch
Thu Dec 22 01:26:06 PST 2011
Hi,
I've been trying to create a service file for myproxy as below, the
startup is okay but then
30 seconds later:
Dec 22 11:18:13 fedup systemd[1]: myproxy-server.service stopping
timed out. Killing.
Dec 22 11:18:13 fedup systemd[1]: Unit myproxy-server.service entered
failed state.
On starting the service, everything looks good?
# systemctl start myproxy-server.service
# systemctl status myproxy-server.service
myproxy-server.service - Server for X.509 Public Key Infrastructure
(PKI) security credentials
Loaded: loaded (/lib/systemd/system/myproxy-server.service; enabled)
Active: deactivating (stop-sigterm) since Thu, 22 Dec 2011 11:20:09
+0100; 51s ago
Process: 18066 ExecStart=/usr/sbin/myproxy-server (code=exited,
status=0/SUCCESS)
CGroup: name=systemd:/system/myproxy-server.service
└ 18073 /usr/sbin/myproxy-server
that's the correct process "18073" and the service is running , I can
use it just fine.
But after 30 seconds syslog shows:
Dec 22 11:18:13 fedup systemd[1]: myproxy-server.service stopping
timed out. Killing.
Dec 22 11:18:13 fedup systemd[1]: Unit myproxy-server.service entered
failed state.
Looking at the daemon process I notice it is not a session leader,
could this be the problem
with myproxy?
myproxy 18091 0.0 0.1 349092 1308 ? S 11:22 0:00
/usr/sbin/myproxy-server
# cat /proc/18091/stat
18091 (myproxy-server) S 1 18090 18090 0 -1 4202560 71 0 0 0 0 0 0 0
20 0 1 0 4223534 357470208 327 18446744073709551615 4194304 4232308
140735582307440 140735582306992 140038141540493 0 1073261060 4096
81923 18446744071584103865 0 0 17 0 0 0 0 0 0
This is with F16 and systemd-37-3
Configuration below, the daemon does not create a pid file.
[Unit]
Description=Server for X.509 Public Key Infrastructure (PKI) security
credentials
After=syslog.target auditd.service
[Service]
Type=fork
User=myproxy
Environment=X509_USER_CERT=/etc/grid-security/myproxy/hostcert.pem
Environment=X509_USER_KEY=/etc/grid-security/myproxy/hostkey.pem
ExecStart=/usr/sbin/myproxy-server
[Install]
WantedBy=multi-user.target
--
Steve Traylen
More information about the systemd-devel
mailing list