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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!