Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 44790 Details for
Bug 57845
net-misc/rdate init script suggestion
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
revised init-script
rdate (text/plain), 622 bytes, created by
Darko Obradovic
on 2004-11-26 12:58:44 UTC
(
hide
)
Description:
revised init-script
Filename:
MIME Type:
Creator:
Darko Obradovic
Created:
2004-11-26 12:58:44 UTC
Size:
622 bytes
patch
obsolete
>#!/sbin/runscript > >depend() { > before cron > need net > use dns >} > >checkconfig() { > if [ -z "${RDATE_SERVER}" ] ; then > eerror "Please edit /etc/conf.d/rdate" > eerror "I need to know what server to use!" > return 1 > fi > if [ -z "${RDATE_OPTS}" ] ; then > eerror "Please edit /etc/conf.d/rdate" > eerror "I need to know what options to use!" > return 1 > fi > return 0 >} > >start() { > checkconfig || return $? > > ebegin "Setting clock via rdate" > /usr/bin/rdate -s ${RDATE_OPTS} ${RDATE_SERVER} >/dev/null & > local pid=$! > (sleep ${RDATE_TIMEOUT:-30}; kill -9 ${pid} >&/dev/null) & > wait ${pid} > eend $? "Failed to set clock" >}
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 Raw
Actions:
View
Attachments on
bug 57845
:
35871
|
35872
| 44790 |
44791