Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Someone
Thursday, September 20th, 2007 at 7:47:05pm UTC 

  1. [email protected]:/etc/network/if-up.d$ cat ntp
  2. #!/bin/sh
  3.  
  4. # remove (or comment out) the next line if your network addresses change
  5. exit 0
  6.  
  7. case $ADDRFAM in
  8.         inet*)
  9.                 if [ -x "/etc/init.d/ntp" ]; then
  10.                         if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  11.                                 invoke-rc.d ntp restart || exit $?
  12.                         else
  13.                                 /etc/init.d/ntp restart || exit $?
  14.                         fi
  15.                 fi
  16.                 ;;
  17. esac
  18. [email protected]:/etc/network/if-up.d$ ps -A | grep ntpd
  19.  4884 ?        00:00:00 ntpd
  20.  6092 ?        00:00:00 ntpd
  21. [email protected]:/etc/network/if-up.d$ ps aux | grep ntpd
  22. ntp       4884  0.0  0.1   4268  1260 ?        Ss   15:40   0:00 /usr/sbin/ntpd
  23. -p /var/run/ntpd.pid -u 111:120 -g
  24. root      6092  0.0  0.0   4268   932 ?        S    15:40   0:00 /usr/sbin/ntpd
  25. -p /var/run/ntpd.pid -u 111:120 -g
  26. quinn     6435  0.0  0.0   2884   752 pts/0    R+   15:46   0:00 grep ntpd
  27. [email protected]:/etc/network/if-up.d$

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right