2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-15 19:01:44 +00:00
Commit Graph

55 Commits

Author SHA1 Message Date
d009f2c00a Add grep to check_exec_or_exit 2021-04-22 13:10:32 -04:00
f0705f9ff4 Modification of the conditional statement 2021-04-22 12:22:23 -04:00
82a2e8afd6 Remove pidfile /dev/null for chronyd in setupntp on Ubuntu systems 2021-04-21 15:50:17 -04:00
ca3251aaf1 Let makentp fall back to use ntpd when systemctl is not available. 2019-04-22 17:37:21 +08:00
ed6852a9e4 add log tag for postscripts (#5805) 2018-11-15 17:12:55 +08:00
2d27aa8554 Hide the `command "chronyd" not found' error message. And pass the $MASTER environment variable to setupntp.traditional (#5520) 2018-08-20 10:21:40 +08:00
08e83de7bc Tweak for setupntp. Ubuntu use chrony.service instead of chronyd.service 2018-07-24 17:06:00 +08:00
803521a4ad Call setupntp.traditional when there is no chrony installed 2018-07-19 13:21:14 +08:00
07a13a7697 Move setupchrony -> setupntp 2018-07-19 13:20:56 +08:00
5f6ab869a2 Move setupntp -> setupntp.traditional 2018-07-19 13:20:42 +08:00
f5437609d4 do not set exit_code to 1 when the clock is not synced before the timeout (#4362) 2017-11-23 03:56:01 -06:00
6f53cf1a0b Timeout the ntpd process if ntpd service is not running on ntpserver (#4321) 2017-11-16 20:34:27 -06:00
1ab870788c Modify setupntp postscripts (#4144)
* Modify setupntp postscripts

* exit after modifed ntp.conf
2017-10-26 09:53:18 -05:00
9710163924 Update setupntp and call it from cumulusztp 2017-10-05 11:03:30 -04:00
3586bea59b modify the message 2017-01-18 15:45:57 -05:00
13566de2a7 makentp -a returns NTP maynot be synchronized on servicenode 2017-01-17 14:02:12 -05:00
179f8211e3 change drift file to /var/lib/ntp/drift/ntp.drift 2017-01-03 14:50:00 -05:00
f08b804e74 modifed 2016-12-16 16:44:21 -05:00
921213ea9e File /etc/sysconfig/ntpd doesn't exists in the SLES 2016-12-16 16:09:56 -05:00
99e4522fde fix 1342 setupntp need enhance to support sles12 2016-06-21 04:29:57 -04:00
0d0f5543de Add wide char * todo the pmatch of output 2015-08-20 14:52:17 -04:00
39cf499532 bugs#4720 makentp should supports synch MN's hwclock 2015-07-09 10:49:45 -04:00
f0b3125e0b Bug #4721 makentp -a didn't work on sles11.3 2015-07-02 14:28:19 -04:00
ed8c829e66 ntp setup to handle sles12 2015-06-19 13:09:41 -04:00
552e733075 added more code for ntp 2015-06-17 16:57:43 -04:00
5e6a982b4c Task 46945 Do not run setupntp if it is service node 2015-06-11 17:02:52 -04:00
28d2110a5e fix bug#4366 change /bin/sh to /bin/bash 2014-11-19 09:42:19 -05:00
81e86de979 fix defect #4245 In rhels 7 env,setupntp script will show error message 2014-08-12 08:37:20 -07:00
8b362709b4 fix defect #4233 syslog changes give syntax error on AIX 2014-07-22 23:20:03 -07:00
f7b9a9a40b replace the service/chkconfig related stuff with newly added subroutine in xCAT::Utils 2014-06-10 08:56:11 -07:00
bfd7e6c7ee setupntp do not return directly 2013-09-13 02:05:25 -07:00
689d4837fb bug 3755, No way to setup CN hardware clock 2013-09-11 03:09:17 -07:00
1c32268e9b check for MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14103 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 19:18:52 +00:00
e96d29b8a5 support external ntp server.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11562 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-13 06:35:33 +00:00
3e4156b864 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11525 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd 2012-02-09 11:34:05 +00:00
37c05a00aa support <xcatmaster> and fix the bug when site.ntpservers is blank.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11524 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-09 11:28:02 +00:00
cede69d8d7 Fix for defect 3419745: Fix Method to Determine if System is Ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10710 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-10-06 17:45:08 +00:00
5c9ce99d14 Fix for defect 3405955: Fix bashisms in setupntp.
Checking in on behalf of coworker Leonardo Tonetto (leont@br.ibm.com).


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-09-08 03:22:49 +00:00
f7a46424bf add autostart for setupntp on AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6308 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-02 08:36:52 +00:00
c5fea87cfd for defect 2979871, if NODESETSTATE=statelite, we will use "cp -a" and "echo '' " to emulate "rm -f" action
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6303 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-02 06:50:38 +00:00
7f3fb77741 -defect 2979871 is fixed;
"cp -a" and " echo '' " are used to emulate "mv -f" on statelite node


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6109 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-14 08:56:47 +00:00
4e780ead9b add the more addional log information to postscripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5680 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-04-06 08:17:04 +00:00
34a1589589 ntpdate is deprecated on SLES11, use ntpd -q -g instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5187 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-02-08 05:41:42 +00:00
fca5b3fcb9 fix to work for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2461 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-11-04 13:41:32 +00:00
fb17a889c3 add chkconfig --add ntp per defect 1997250
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2360 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-10-17 16:29:24 +00:00
d11bfe8ee8 fixed for AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1648 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-06-13 12:22:20 +00:00
14da767736 Add chkconfig defect 1975557
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1587 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-06-04 19:48:58 +00:00
5396adae2d git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1549 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd 2008-06-02 16:45:22 +00:00
d425ba6612 do not exit with ntpdate failure
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1531 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-05-30 13:52:38 +00:00
197a444b43 remove obsolete authenticate keyword
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1512 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-05-28 18:51:33 +00:00