Author: Jan Safranek <jsafrane@redhat.com>

Date:   Mon Aug 13 14:35:28 2012 +0200
    Fixed ipmievd start under systemd.

    Systemd init system starts services with parent PID=1. Still, it is expected
    that the daemon forks and exits with nozero exit status, if its initialization
    fails.
This commit is contained in:
Jim Mankovich 2012-09-05 20:46:16 +00:00
parent 2d725c2cd6
commit 700ee7d27d

View File

@ -549,10 +549,6 @@ ipmi_start_daemon(struct ipmi_intf *intf)
sigset_t sighup;
#endif
/* if we are started from init no need to become daemon */
if (getppid() == 1)
return;
#ifdef SIGHUP
sigemptyset(&sighup);
sigaddset(&sighup, SIGHUP);