Message ID | 1501532745-28378-5-git-send-email-jgunthorpe@obsidianresearch.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/ibacm/ibacm.service.in b/ibacm/ibacm.service.in index fae768faef560b..7d589b57f59e00 100644 --- a/ibacm/ibacm.service.in +++ b/ibacm/ibacm.service.in @@ -4,8 +4,7 @@ Documentation=man:ibacm file:@CMAKE_INSTALL_SYSCONFDIR@/rdma/ibacm_opts.cfg After=opensm.service [Service] -Type=forking -ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/ibacm +ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/ibacm -P [Install] WantedBy=network.target
This avoids daemonizing the server and forking as systemd does all of that for us. The notable benefit is to allow stderr to be routed to the journal in case there is any sort of internal fault (eg a glibc memory failure) Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> --- ibacm/ibacm.service.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)