Yann Büchau :python: on Nostr: Quite annoying that there is no #systemd mechanism to temporarily stop a service ...
Quite annoying that there is no #systemd mechanism to temporarily stop a service while another one is running. There's `Conflicts=...`, but that won' restart the listed units. You can use `ExecStartPost=+systemctl restart ...` but that can get weird with certain `Type`s. 🙄
Published at
2024-10-22 13:25:47Event JSON
{
"id": "b3f41e2747f6767bb22f8c7caf8f5c359959e8b2952eb0e5f372045f7e2cbe9a",
"pubkey": "0abc897a05eca0849f658dc45fb983e46041d357150b09df857131e7a7552848",
"created_at": 1729603547,
"kind": 1,
"tags": [
[
"t",
"systemd"
],
[
"proxy",
"https://fosstodon.org/users/nobodyinperson/statuses/113351298074290357",
"activitypub"
]
],
"content": "Quite annoying that there is no #systemd mechanism to temporarily stop a service while another one is running. There's `Conflicts=...`, but that won' restart the listed units. You can use `ExecStartPost=+systemctl restart ...` but that can get weird with certain `Type`s. 🙄",
"sig": "799147b594c8353a52201f0ed1b7193a3e34c2fb13ad0c6d3f321be96493776d2b2bcf36d492e97ef5a729a9b36d06f65f0130d227c4b1ce1cac9375a35e05c3"
}