Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 407374 Details for
Bug 540274
sys-process/cronbase: run-crons: add code to display script name for cron.{h,d,w,m}*
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use appropriate priority when logging through logger
use-appropriate-priority.patch (text/plain), 983 bytes, created by
Thomas Deutschmann (RETIRED)
on 2015-07-22 09:18:01 UTC
(
hide
)
Description:
Use appropriate priority when logging through logger
Filename:
MIME Type:
Creator:
Thomas Deutschmann (RETIRED)
Created:
2015-07-22 09:18:01 UTC
Size:
983 bytes
patch
obsolete
>diff -rupN old/sys-process/cronbase/files/run-crons-0.3.5 new/sys-process/cronbase/files/run-crons-0.3.5 >--- old/sys-process/cronbase/files/run-crons-0.3.5 2015-07-22 09:12:15.000000000 +0200 >+++ new/sys-process/cronbase/files/run-crons-0.3.5 2015-07-22 11:02:03.156344540 +0200 >@@ -33,9 +33,12 @@ > LOCKDIR=/var/spool/cron/lastrun > LOCKFILE=${LOCKDIR}/lock > >-# Usage: log <args to logger> >+# Usage: log <priority> <msg> > log() { >- logger -i -p cron.info -t run-crons "$@" >+ local priority=$1 >+ shift >+ >+ logger -i -p ${priority} -t run-crons "$@" > } > > mkdir -p ${LOCKDIR} >@@ -108,11 +111,11 @@ for BASE in hourly daily weekly monthly > .*|*~) continue ;; > esac > >- log "($(whoami)) CMD (${SCRIPT})" >+ log "cron.info" "($(whoami)) CMD (${SCRIPT})" > $SCRIPT > ret=$? > if [ ${ret} -ne 0 ] ; then >- log "CMD (${SCRIPT}) failed with exit status ${ret}" >+ log "cron.err" "CMD (${SCRIPT}) failed with exit status ${ret}" > EXIT_STATUS=1 > fi > fi
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 540274
:
396590
|
407374