超时后启动系统查杀进程

我在centos 7中得到了一个守护进程,我试图通过systemd在启动时进行设置。 守护进程是一个二进制(c源),做一个叉和改变的id /组。

我遇到的麻烦是系统似乎在超时后杀死守护进程。 我不确定它是否认为这个过程没有正确开始,或者它是否试图查看它是否仍然有效。 无论如何这里是状态信息:

[root@billing init.d]# systemctl status bx_edge.service bx_edge.service - BillMax Customer Portal Daemon Loaded: loaded (/etc/systemd/system/bx_edge.service; disabled; vendor preset: disabled) Active: failed (Result: timeout) since Thu 2016-09-22 00:02:48 UTC; 48s ago Process: 10611 ExecStop=/bin/pkill edge (code=exited, status=0/SUCCESS) Process: 10606 ExecStart=/usr/local/billmax/bin/edge -i -o (code=exited, status=0/SUCCESS) Main PID: 10609 (code=exited, status=0/SUCCESS) Sep 22 00:01:18 billing.billmax.com systemd[1]: Starting BillMax Customer Portal Daemon... Sep 22 00:01:18 billing.billmax.com systemd[1]: Started BillMax Customer Portal Daemon. Sep 22 00:02:48 billing.billmax.com systemd[1]: bx_edge.service stop-sigterm timed out. Killing. Sep 22 00:02:48 billing.billmax.com systemd[1]: Unit bx_edge.service entered failed state. Sep 22 00:02:48 billing.billmax.com systemd[1]: bx_edge.service failed. 

我的服务文件如下所示:

 [Unit] Description=BillMax Customer Portal Daemon After=network.target [Service] ExecStart=/usr/local/billmax/bin/edge -i -o ExecStop=/bin/pkill edge Type=forking [Install] WantedBy=default.target 

这是什么原因造成的? 我试着改变Type值,但是结果是相同的行为。

法案