summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorJack Mitchell <jmitchell@cbnl.com>2013-10-15 10:06:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-12 16:59:57 +0000
commitcb916ff4e55da077fe66392905a88c2cf1dfe9dc (patch)
tree46796afa5e7ad38d807ba866309a88bc24125d12 /meta/recipes-extended
parentdba3eff8e21c9ed905ad294ff9a66593c1192ad9 (diff)
downloadpoky-cb916ff4e55da077fe66392905a88c2cf1dfe9dc.tar.gz
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>
Diffstat (limited to 'meta/recipes-extended')
-rwxr-xr-xmeta/recipes-extended/cronie/cronie/crond.init8
1 files changed, 0 insertions, 8 deletions
diff --git a/meta/recipes-extended/cronie/cronie/crond.init b/meta/recipes-extended/cronie/cronie/crond.init
index 08f34beed9..c8dffef89a 100755
--- a/meta/recipes-extended/cronie/cronie/crond.init
+++ b/meta/recipes-extended/cronie/cronie/crond.init
@@ -23,10 +23,6 @@ CONFIG=/etc/sysconfig/crond
23 23
24case "$1" in 24case "$1" in
25 start) 25 start)
26 if [ $UID -ne 0 ] ; then
27 echo "User has insufficient privilege."
28 exit 1
29 fi
30 echo -n "Starting crond: " 26 echo -n "Starting crond: "
31 start-stop-daemon --start --quiet --exec $CROND -- $CRONDARGS 27 start-stop-daemon --start --quiet --exec $CROND -- $CRONDARGS
32 RETVAL=$? 28 RETVAL=$?
@@ -37,10 +33,6 @@ case "$1" in
37 fi 33 fi
38 ;; 34 ;;
39 stop) 35 stop)
40 if [ $UID -ne 0 ] ; then
41 echo "User has insufficient privilege."
42 exit 1
43 fi
44 echo -n "Stopping crond: " 36 echo -n "Stopping crond: "
45 start-stop-daemon --stop --quiet --pidfile /var/run/crond.pid 37 start-stop-daemon --stop --quiet --pidfile /var/run/crond.pid
46 RETVAL=$? 38 RETVAL=$?