Skip to content

Commit

Permalink
include /run in get_service_file
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <[email protected]>
  • Loading branch information
konstruktoid committed Apr 11, 2024
1 parent 820abe9 commit e081393
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functions/helper_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ get_service_file() {
systemctl show -p FragmentPath "$SERVICE" | sed 's/.*=//'
return
fi
if find /run -name "$SERVICE" 2> /dev/null 1>&2; then
find /run -name "$SERVICE" | head -n1
return
fi
echo "/usr/lib/systemd/system/$SERVICE"
}

Expand Down

0 comments on commit e081393

Please sign in to comment.