Hi All!
We have a service abc which starts a process x. We have a scenario where x process crashes, which we generate via killall. In centos 6 service abc stop was not triggered when x process was killed and we see start triggered. But in Centos 7 with the same monitrc file we see service stop is initiated and then start, which causes issue for us. Any help on the same ?.
rgds
Balaji Kamal Kannadassan
killall of a service process triggers service stop in Centos 7 ?
-
- Posts: 12
- Joined: 2018/05/17 10:26:35
Re: killall of a service process triggers service stop in Centos 7 ?
Are you sure you even need to use monit with CentOS 7? CentOS 7 uses systemd instead of the old style initscripts and part of systemd can restart failing services automatically.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 12
- Joined: 2018/05/17 10:26:35
Re: killall of a service process triggers service stop in Centos 7 ?
Thanks for the response, even without monit I see service stop is triggered and then start is triggered..TrevorH wrote:Are you sure you even need to use monit with CentOS 7? CentOS 7 uses systemd instead of the old style initscripts and part of systemd can restart failing services automatically.
-
- Posts: 12
- Joined: 2018/05/17 10:26:35
Re: killall of a service process triggers service stop in Centos 7 ?
To add some more observation if I remove ExecStop from the abc.service file. I don't see service getting stopped and started, I see service is only started.
-
- Posts: 12
- Joined: 2018/05/17 10:26:35
Re: killall of a service process triggers service stop in Centos 7 ?
Apparently looks like even service stop is not entertained when stop is removed. Any help on this ?
-
- Posts: 12
- Joined: 2018/05/17 10:26:35
Re: killall of a service process triggers service stop in Centos 7 ?
So in short..
I am killing a process which is the only one associated to this service. I don't want systemd to call stop and instead I want it to detect and just start. I tried below option
remove ExecStop from .service file..
But this causes issue, since I am not able to do service abc stop.
Any help on the same ?..
rgds
Balaji Kamal Kannadassan
I am killing a process which is the only one associated to this service. I don't want systemd to call stop and instead I want it to detect and just start. I tried below option
remove ExecStop from .service file..
But this causes issue, since I am not able to do service abc stop.
Any help on the same ?..
rgds
Balaji Kamal Kannadassan