Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 57845

Summary: net-misc/rdate init script suggestion
Product: Gentoo Linux Reporter: antoine marmignon <antoine.marmignon>
Component: New packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: Inclusion
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: rdate.rc
rdate.confd
revised init-script
revised conf file

Description antoine marmignon 2004-07-21 06:16:33 UTC
Considering that some people need to keep their clock on track without the overkill of installing ntp, here is a suggestion for adding an init script to the net-misc/rdate ebuild. It is loosely based on the ntp-client init script.

Lines to add to the actual stable rdate ebuild:
----------8<----------8<----------
src_install(){
	......
	exeinto /etc/init.d
	newexe ${FILESDIR}/rdate.rc rdate
	insinto /etc/conf.d
	newins ${FILESDIR}/rdate.confd rdate
}

pkg_postinst() {
	ewarn "Review /etc/conf.d/rdate to setup init.d info."
}
----------8<----------8<----------

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 antoine marmignon 2004-07-21 06:17:28 UTC
Created attachment 35871 [details]
rdate.rc
Comment 2 antoine marmignon 2004-07-21 06:18:08 UTC
Created attachment 35872 [details]
rdate.confd
Comment 3 Darko Obradovic 2004-11-26 12:56:07 UTC
I just wanted to file the same bug. :)
I think the scripts can be enhanced a little to match rdate more specifically. Attachments follow.
Comment 4 Darko Obradovic 2004-11-26 12:58:44 UTC
Created attachment 44790 [details]
revised init-script

always use "-s", no CMD var, as "/usr/binrdate" is fixed by the ebuild
Comment 5 Darko Obradovic 2004-11-26 13:02:18 UTC
Created attachment 44791 [details]
revised conf file

with my example values filled in
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2004-12-10 02:37:46 UTC
Since I don't have haven't ever used rdate, I'm going to throw this back to bug-wranglers.  I think robbat2 might have a shot at this since he's touched it recently.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-05-17 14:19:19 UTC
in cvs.
Comment 8 Shyam Mani (RETIRED) gentoo-dev 2005-05-17 23:16:50 UTC
(In reply to comment #0)
> Considering that some people need to keep their clock on track without the
overkill of installing ntp, 

Thanks! I don't need to cron rdate anymore :)