Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ncp/SYSTEM/nc-hdd-monitor.sh')
-rw-r--r--bin/ncp/SYSTEM/nc-hdd-monitor.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/ncp/SYSTEM/nc-hdd-monitor.sh b/bin/ncp/SYSTEM/nc-hdd-monitor.sh
index 8d61de3f..15317252 100644
--- a/bin/ncp/SYSTEM/nc-hdd-monitor.sh
+++ b/bin/ncp/SYSTEM/nc-hdd-monitor.sh
@@ -24,8 +24,7 @@ configure()
}
[[ "$ACTIVE" != yes ]] && {
- systemctl disable smartd
- service smartd stop
+ systemctl disable --now smartd
echo "HDD monitor disabled"
return 0
}
@@ -70,8 +69,7 @@ EOF
done
- systemctl enable smartd
- service smartd start
+ systemctl enable --now smartd
echo "HDD monitor enabled"
}