2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-03 03:50:08 +00:00
chenglch f09939a15a Add xcat marker in gocnoserver configuration file
Previously, it is impossible to know if the goconerver is started
by xcat. This patch add a marker in /etc/goconserver/server.conf
to help check the status. In addition, use server-cred.pem instead
of server-key.pem as it is not exist on SN.

This patch also control the service status of goconserver and conserver
when restarting the xcatd service on service node.

```
[root@sn02 ~]# chdef sn02 setupconserver=1
1 object definitions have been created or modified.
[root@sn02 ~]# service xcatd restart
Restarting xcatd (via systemctl):                          [  OK  ]
[root@sn02 ~]# ps -ef | grep conserver
root      27679      1  0 02:26 ?        00:00:00 /usr/sbin/conserver -o -O1 -d
root      27680  27679  0 02:26 ?        00:00:00 /usr/sbin/conserver -o -O1 -d
root      27756  26188  0 02:26 pts/1    00:00:00 grep --color=auto conserver
[root@sn02 ~]# chdef sn02 setupconserver=2
1 object definitions have been created or modified.
[root@sn02 ~]# service xcatd restart
Restarting xcatd (via systemctl):                          [  OK  ]
[root@sn02 ~]#
[root@sn02 ~]#
[root@sn02 ~]#
[root@sn02 ~]# ps -ef | grep conserver
root      27885      1  0 02:26 ?        00:00:00 /usr/bin/goconserver
root      27986  26188  0 02:33 pts/1    00:00:00 grep --color=auto conserver
```
2017-12-28 16:46:47 +08:00
..
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2017-09-07 15:50:11 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2017-10-23 14:15:57 +08:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2017-10-10 22:08:50 -04:00
2017-08-28 08:41:58 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-25 08:56:18 -04:00
2017-01-18 15:45:57 -05:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2017-12-15 19:26:19 +08:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-25 08:56:18 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2017-10-24 16:21:11 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2016-07-20 11:40:27 -04:00
2017-10-19 14:18:47 -04:00
2017-04-21 14:07:34 -04:00