Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 363450 Details for
Bug 491520
sys-process/cronbase: run-crons should not end with a zero exit code when any called script has failed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
indicate script errors with exit code
indicate-script-errors-with-exit-code.patch (text/plain), 744 bytes, created by
Thomas Deutschmann (RETIRED)
on 2013-11-17 20:08:34 UTC
(
hide
)
Description:
indicate script errors with exit code
Filename:
MIME Type:
Creator:
Thomas Deutschmann (RETIRED)
Created:
2013-11-17 20:08:34 UTC
Size:
744 bytes
patch
obsolete
>--- /usr/sbin/run-crons.old 2013-11-17 20:42:57.012748448 +0100 >+++ /usr/sbin/run-crons 2013-11-17 20:45:58.389054832 +0100 >@@ -30,6 +30,8 @@ > # for scripts to be executed. The info about last run is stored in > # /var/spool/cron/lastrun > >+HAS_ERRORS=0 >+ > LOCKDIR=/var/spool/cron/lastrun > LOCKFILE=${LOCKDIR}/lock > >@@ -100,6 +102,7 @@ > if [[ -x $SCRIPT && ! -d $SCRIPT ]]; then > [ -x /usr/bin/logger ] && /usr/bin/logger -i -p cron.info -t run-crons "(`whoami`) CMD ($SCRIPT)" > $SCRIPT >+ [ $? -ne 0 ] && HAS_ERRORS=1 > fi > done > fi >@@ -108,3 +111,5 @@ > # Clean out bogus cron.$BASE files with future times > touch ${LOCKDIR} > find ${LOCKDIR} -newer ${LOCKDIR} -exec /bin/rm -f {} \; &>/dev/null || true >+ >+exit ${HAS_ERRORS}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 491520
: 363450