Stop systemd process restart after segfault

mjoconr

Renowned Member
Dec 5, 2009
88
1
73
Hi All
I have a problem where OSDs are sefaulting, I've been asked to run a diagnostic command but its must be run while the OSD is down.

So I need a way of stopping systemd from restarting segfaulted processes, or just not restarting them if they die.

I've been googling but all the results I find are about systemd not restarting the process not how to stop it starting the process ;)

Thanks
 
Hi,

you have to run the binary's of the systemd service manually.

systemctl cat ceph-osd@.service
 
Ok intersting information, I assume the only option to change would be
Restart=on-failure
I'll do some reading to see how I do that. No option to detect segfault