aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2013-06-29 17:21:50 (GMT)
committerAdrian C. (anrxc) <anrxc@sysphere.org>2013-06-29 17:21:50 (GMT)
commit8fc89366e2bced3c6297c82e6210172c26153339 (patch)
tree42de575b8f5876d9e232aee34713c78702814505
parent16f35df436febb8796a8a658ddd1b723a1be29b0 (diff)
downloadrcdscripts-8fc89366e2bced3c6297c82e6210172c26153339.tar.xz
rcdscripts: dcron and hddtemp /usr/sbin deprecation
-rwxr-xr-xsrc/dcron/dcron.rc6
-rwxr-xr-xsrc/hddtemp/rc.d4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/dcron/dcron.rc b/src/dcron/dcron.rc
index 3575474..9ba8d09 100755
--- a/src/dcron/dcron.rc
+++ b/src/dcron/dcron.rc
@@ -4,7 +4,7 @@
. /etc/rc.d/functions
. /etc/conf.d/crond
-PID=$(pidof -o %PPID /usr/sbin/crond)
+PID=$(pidof -o %PPID /usr/bin/crond)
case $1 in
start)
stat_busy "Starting Cron Daemon"
@@ -12,9 +12,9 @@ start)
# defaults to using syslog, and sendmail-ing cron output to local user
# to mail output to remote address instead, add "-m user@host"
# to CROND_ARGS in /etc/conf.d/crond
- if [[ -z $PID ]] && env -i PATH="/sbin:/usr/sbin:/bin:/usr/bin" /usr/sbin/crond $CROND_ARGS; then
+ if [[ -z $PID ]] && env -i PATH="/sbin:/usr/sbin:/bin:/usr/bin" /usr/bin/crond $CROND_ARGS; then
- PID=$(pidof -o %PPID /usr/sbin/crond)
+ PID=$(pidof -o %PPID /usr/bin/crond)
echo "$PID" > /var/run/crond.pid
add_daemon crond
stat_done
diff --git a/src/hddtemp/rc.d b/src/hddtemp/rc.d
index 62f0908..d12e0df 100755
--- a/src/hddtemp/rc.d
+++ b/src/hddtemp/rc.d
@@ -6,11 +6,11 @@
PARAMS=
DRIVES=
[ -f /etc/conf.d/hddtemp ] && . /etc/conf.d/hddtemp
-PID=$(pidof -o %PPID /usr/sbin/hddtemp)
+PID=$(pidof -o %PPID /usr/bin/hddtemp)
case "$1" in
start)
stat_busy "Starting HDDTemp"
- [ -z "$PID" ] && /usr/sbin/hddtemp -d $PARAMS $DRIVES
+ [ -z "$PID" ] && /usr/bin/hddtemp -d $PARAMS $DRIVES
if [ $? -gt 0 ]; then
stat_fail
else