You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UseSystemd() does nothing when ProtectProc=invisible is set #125368
In comment on 88660 user complained that UseSystemd() does nothing when ProtectProc=invisible is set. It's likely because in that case systemd hides files which UseSystemd uses for detection if running on systemd based system or not. Since issues is different from originally reported (support non-sytemd × sometimes do not work at systemd), creating separate issue for tracking it for case we pick approach that do not solves them both at once.
Reproduction Steps
Run Microsoft.Extensions.Hosting based app with ProtectProc=invisible set in systemd service unit file
@mrek-msft the option that is discussed in #88660 would work equally well for ProtectProc=invisible. It's not likely we'd do something that would not work for it. Do we need this extra ticket at this time?
@tmds I do not know. I can imagine alternative like do not relaxing checks in UseSystemd and introduce some new UseXXX for non-systemd. It seems semantically wrong to me to extend UseSystemd to support far more than systemd and can limit us if we decide to support some systemd specific features. In case of approaching it in separate way, we would need to solve mentioned issues separately. Maybe another ways that I am not aware of exists.
Feel free to close it if you think it do not make sense at all.
We can create a separate issue if that is a result of the discussion on #88660. At this point, having a separate issue might only cause the discussion to be split across two issues.
Activity
dotnet-policy-service commentedon Mar 10, 2026
Tagging subscribers to this area: @dotnet/area-extensions-hosting
See info in area-owners.md if you want to be subscribed.
tmds commentedon Mar 10, 2026
@mrek-msft the option that is discussed in #88660 would work equally well for
ProtectProc=invisible. It's not likely we'd do something that would not work for it. Do we need this extra ticket at this time?mrek-msft commentedon Mar 10, 2026
@tmds I do not know. I can imagine alternative like do not relaxing checks in UseSystemd and introduce some new UseXXX for non-systemd. It seems semantically wrong to me to extend UseSystemd to support far more than systemd and can limit us if we decide to support some systemd specific features. In case of approaching it in separate way, we would need to solve mentioned issues separately. Maybe another ways that I am not aware of exists.
Feel free to close it if you think it do not make sense at all.
tmds commentedon Mar 10, 2026
We can create a separate issue if that is a result of the discussion on #88660. At this point, having a separate issue might only cause the discussion to be split across two issues.
Fix UseSystemd() silently failing with ProtectProc=invisible