thank you! in this case it was really a typo
but "dbmail-imapd" is/was correct with "forking"
you can see the master-porcess and a child shortly in ps aux but
after a few seconds systemd changes to "deactivating (stop-sigterm)"
and is killing the processes
[root@testserver:/lib/systemd/system]$ systemctl --system daemon-reload
[root@testserver:/lib/systemd/system]$ systemctl start dbmail-imapd.service
[root@testserver:/lib/systemd/system]$ ps aux | grep dbmail | grep imap
root 4997 0.0 0.0 63436 732 ? S 13:04 0:00 /usr/sbin/dbmail-imapd
dbmail 4998 0.5 0.2 174172 3340 ? S 13:04 0:00 /usr/sbin/dbmail-imapd
[root@testserver:/lib/systemd/system]$ systemctl status dbmail-imapd.service
dbmail-imapd.service - DBMail IMAP Server
Loaded: loaded (/lib/systemd/system/dbmail-imapd.service)
Active: inactive (dead) since Thu, 16 Jun 2011 13:04:59 +0200; 3s ago
Process: 4995 ExecStart=/usr/sbin/dbmail-imapd (code=exited, status=0/SUCCESS)
Main PID: 4996 (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/dbmail-imapd.service
[root@testserver:/lib/systemd/system]$ systemctl start dbmail-imapd.service
[root@testserver:/lib/systemd/system]$ systemctl status dbmail-imapd.service
dbmail-imapd.service - DBMail IMAP Server
Loaded: loaded (/lib/systemd/system/dbmail-imapd.service)
Active: deactivating (stop-sigterm) since Thu, 16 Jun 2011 13:05:11 +0200; 1s
ago
Process: 5013 ExecStart=/usr/sbin/dbmail-imapd (code=exited, status=0/SUCCESS)
Main PID: 5014 (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/dbmail-imapd.service
├ 5015 /usr/sbin/dbmail-imapd
├ 5016 /usr/sbin/dbmail-imapd
└ 5018 /usr/sbin/dbmail-imapd
[root@testserver:/lib/systemd/system]$ cat dbmail-imapd.service
[Unit]
Description=DBMail IMAP Server
After=syslog.target mysqld.service local-fs.target network.target
[Service]
Type=forking
PIDFile=/var/run/dbmail-imapd.pid
ExecStart=/usr/sbin/dbmail-imapd
[Install]
WantedBy=multi-user.target
Am 16.06.2011 12:53, schrieb Michal Schmidt:
On 06/16/2011 12:49 PM, Reindl Harald wrote:
>> [Service]
>> Type=fork
Type=
Configures the process start-up type for this service unit.
One of simple, forking, oneshot, dbus, notify.
Try "forking", not "fork"
--
Mit besten Grüßen, Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / software-development / cms-solutions
p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
icq: 154546673,
http://www.thelounge.net/
http://www.thelounge.net/signature.asc.what.htm