bug: service_proc stop errors on socket cleanup — rm is nu builtin (service_proc.nu:330) #109
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills#109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
service_proc stoperrors out on its last step with:The graceful RPC shutdown and pkill steps may have already completed, so the process is actually stopped — but the socket file is left behind and the user sees an error instead of a clean exit.
Location
tools/modules/services/service_proc.nu:330:rmis a nushell built-in, so| complete(which only works on external commands) fails.Proposed fix
Use the external
rm:Or simpler, since
rm -fis a no-op on missing files and the sudo branch above already uses^sudo rm -f:Impact
Low severity but 100% reproducible — every non-sudo
service_proc stopthat leaves a stale socket errors out, confusing users.