summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rwxr-xr-xsbin/rc-services.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/sbin/rc-services.sh b/sbin/rc-services.sh
index 0badfd5..e828863 100755
--- a/sbin/rc-services.sh
+++ b/sbin/rc-services.sh
@@ -527,12 +527,8 @@ test_service_state() {
# Service is in the state requested
[[ -L ${f} ]] && return 0
- if [[ ! -e ${f} ]] ; then
- rm -f "${f}"
- return 1
- fi
-
- return 0
+ [[ ! -e ${f} ]] && rm -f "${f}"
+ return 1
}
# bool service_starting(service)