diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-11-30 09:51:38 -0600 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-11-30 18:21:57 -0600 |
commit | 3e72a7a5adb9d3b69d45dda327ed5bde5ad2eabc (patch) | |
tree | c8c81d1705d75049ede16178c882031cf4267c36 /pm | |
parent | d4c9650d3476643454c282b082fa45820f4d72ac (diff) |
Drop 50ntpd
ntpd operates normally over a sleep/wake cycle. Stoppping and
restarting it in a sleep hook is too adhoc. If it is essential
that ntpd be stopped and restarted, then having NetworkManager
do the job when interfaces go offline and come back online is
a better way to do things.
Diffstat (limited to 'pm')
-rwxr-xr-x | pm/sleep.d/50ntpd | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/pm/sleep.d/50ntpd b/pm/sleep.d/50ntpd deleted file mode 100755 index 96ad3d4..0000000 --- a/pm/sleep.d/50ntpd +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -. "${PM_FUNCTIONS}" - -NTPD_LOCK="pm-ntpd.lock" - -stop_ntp() -{ - if try_lock "${NTPD_LOCK}"; then - trap 'release_lock "${NTPD_LOCK}"' 0 - stopservice ntpd - fi -} - -start_ntp() -{ - # Bring back ntpd _after_ NetworkManager and such come back... - ( spin_lock "${NTPD_LOCK}"; - trap 'release_lock "${NTPD_LOCK}"' 0 - sleep 20 - restartservice ntpd; ) & -} - -case "$1" in - hibernate|suspend) stop_ntp ;; - thaw|resume) start_ntp ;; - *) exit $NA ;; -esac |