Opened 10 years ago

Closed 10 years ago

#3077 closed enhancement (fixed)

update openntp init script

Reported by: michu-at-neophobdotcom Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:


set the timezone before openntpd is started:

Index: package/net/openntpd/files/ntpd.init
--- package/net/openntpd/files/ntpd.init	(revision 10204)
+++ package/net/openntpd/files/ntpd.init	(working copy)
@@ -5,6 +5,7 @@
 start() {
 	mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd`
 	mkdir -p /var/db/
+	echo GMT-1 > /etc/TZ
 	/usr/sbin/ntpd -s

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by nabcore

I don't think this patch has been thought out too well:

What happens if (a perhaps correct) /etc/TZ already exists?
Why are we assuming the timezone is GMT-1?
What about daylight saving parameters to /etc/TZ

comment:2 Changed 10 years ago by blogic

  • Resolution set to fixed
  • Status changed from new to closed

applied in [11445]

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.