View Single Post
  #5 (permalink)  
Old 22-Jun-2009, 04:46
Gian-Piero Gian-Piero is offline
Student Penguin
 
Join Date: Oct 2008
Location: Switzerland
Posts: 66
Gian-Piero hasn't been rated much yet
Default Re: Launching a NTP server

Thank you for your answer.
I have found the following script in the distribution package:
Quote:
#! /bin/bash

case "$1" in
start)
echo -n "Starting ntpd "
/usr/local/bin/ntpd
echo -e " done"
;;
stop)
echo -n "Shutting down ntpd:"
killall /usr/local/bin/ntpd
echo -e " done"
;;
reload|restart)
$0 stop && $0 start
;;
status)
echo -n "Checking for service ntpd: "
checkproc /usr/local/bin/ntpd && echo OK || echo No process
;;
*)
echo "Usage: $0 {start|stop|status|reload|restart}"
exit 1
esac
I have put it in /etc/init.d and made it executable.
Now I can see the service ntpd in Yast2, but its activity is " No* " (I hope my translation is correct because my version of openSUSE 11.1 is in French).
This service is always not started at boot, because it requires root access.
I can start it manually from within Yast2 or from a terminal as root.
My problem still is: how can I manage to start this service as root automatically?
As I am far from being a specialist can you tell me what I have to do?

Kind regards

Last edited by Gian-Piero; 22-Jun-2009 at 04:47. Reason: missing details
Reply With Quote