Last change
on this file since d8a3177 was 7125722, checked in by Jim Gifford <clfs@…>, 17 years ago |
Import of Bootscripts
|
-
Property mode
set to
100644
|
File size:
511 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # Begin $rc_base/init.d/ntp
|
---|
3 |
|
---|
4 | #$LastChangedBy: bdubbs $
|
---|
5 | #$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
|
---|
6 |
|
---|
7 | . /etc/sysconfig/rc
|
---|
8 | . $rc_functions
|
---|
9 |
|
---|
10 | case "$1" in
|
---|
11 | start)
|
---|
12 | boot_mesg "Starting ntpd..."
|
---|
13 | ntpd -gqx
|
---|
14 | loadproc /usr/sbin/ntpd
|
---|
15 | ;;
|
---|
16 |
|
---|
17 | stop)
|
---|
18 | boot_mesg "Stopping ntpd..."
|
---|
19 | killproc /usr/sbin/ntpd
|
---|
20 | ;;
|
---|
21 |
|
---|
22 | restart)
|
---|
23 | $0 stop
|
---|
24 | sleep 1
|
---|
25 | $0 start
|
---|
26 | ;;
|
---|
27 |
|
---|
28 | status)
|
---|
29 | statusproc /usr/sbin/ntpd
|
---|
30 | ;;
|
---|
31 |
|
---|
32 | *)
|
---|
33 | echo "Usage: $0 {start|stop|restart|status}"
|
---|
34 | exit 1
|
---|
35 | ;;
|
---|
36 | esac
|
---|
37 |
|
---|
38 | # End $rc_base/init.d/ntp
|
---|
Note:
See
TracBrowser
for help on using the repository browser.