crond: remove UID check in init script
this init script fails when the default shell is busybox sh. This is because busybox sh doesn't set the UID. No other init scripts in oecore feel the need to check the UID so just remove the check. (From OE-Core master rev: dd6a45536043af34c05a699e468cef4845f7affd) (From OE-Core rev: 11385321982411d3d1c2aa663b2b2d195c74f353) Signed-off-by: Jack Mitchell <jmitchell@cbnl.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
dba3eff8e2
commit
cb916ff4e5
|
@ -23,10 +23,6 @@ CONFIG=/etc/sysconfig/crond
|
|||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ $UID -ne 0 ] ; then
|
||||
echo "User has insufficient privilege."
|
||||
exit 1
|
||||
fi
|
||||
echo -n "Starting crond: "
|
||||
start-stop-daemon --start --quiet --exec $CROND -- $CRONDARGS
|
||||
RETVAL=$?
|
||||
|
@ -37,10 +33,6 @@ case "$1" in
|
|||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ $UID -ne 0 ] ; then
|
||||
echo "User has insufficient privilege."
|
||||
exit 1
|
||||
fi
|
||||
echo -n "Stopping crond: "
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/crond.pid
|
||||
RETVAL=$?
|
||||
|
|
Loading…
Reference in New Issue