This discussion is archived
1 Reply Latest reply: Jul 25, 2012 11:27 AM by RufusXavierSarsparilla RSS

run a service via startup script (correct me if I am wrong)

845297 Newbie
Currently Being Moderated
Environment

Solaris 9

I have configured the Solaris9 as NTP client in which Solaris9 is syncing the time with a windows2008 R2 Server which is runing fine. Now I want that the xntpd service should start at startup. I did this via a script. Kindly correct if I did any thing wrong:

1.)Made a file under the run level in which my solaris9 boots as defaults.(I verified my default run level is 5 via the command who -r)

#cd /etc/rc3.d/
#touch S99xntpd.sh

2.) Add the below command in the created file
# vi /etc/rc3.d/S99xntpd.sh
/etc/init.d/xntpd start

3.) Verify that the root user has the correct permission

#ls -la

-rwxr--r-- 1 root root 24 Jul 16 13:06 S99xntpd.sh

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points