From 700ee7d27d9a0f6b29c4c6c4877a7bc5a991de32 Mon Sep 17 00:00:00 2001 From: Jim Mankovich Date: Wed, 5 Sep 2012 20:46:16 +0000 Subject: [PATCH] Author: Jan Safranek 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. --- ipmitool/lib/helper.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ipmitool/lib/helper.c b/ipmitool/lib/helper.c index 9db693a..bc9fa84 100644 --- a/ipmitool/lib/helper.c +++ b/ipmitool/lib/helper.c @@ -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);