We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c495b3a + 9669294 commit 2311026Copy full SHA for 2311026
functions/helper_lib.sh
@@ -140,7 +140,11 @@ get_service_file() {
140
echo "/lib/systemd/system/$SERVICE"
141
return
142
fi
143
- if systemctl show -p FragmentPath "$SERVICE" 2> /dev/null 1>&2; then
+ if find /run -name "$SERVICE" 2> /dev/null 1>&2; then
144
+ find /run -name "$SERVICE" | head -n1
145
+ return
146
+ fi
147
+ if [ "$(systemctl show -p FragmentPath "$SERVICE" | sed 's/.*=//')" != "" ]; then
148
systemctl show -p FragmentPath "$SERVICE" | sed 's/.*=//'
149
150
0 commit comments