I had to hack the script to force DB_SERVICE=postgresql

It was looking for the /etc/init.d/postgresql script, but since is CentOS 7, 
it’s in /etc/system

Chris

From: "Fouts, Christopher" <[email protected]>
Date: Wednesday, April 12, 2017 at 12:35 PM
To: "[email protected]" <[email protected]>
Subject: Re: [Spacewalk-list] How to regenerate certs?

Thanks.

I tried spacewalk-hostname-rename <ipaddress> but get

Stopping rhn-satellite services ... OK
Testing DB connection ... FAILED
Your database isn't running.
Fix the problem and run /bin/spacewalk-hostname-rename again

I use postgresql and see

$ systemctl status postgresql.service

   Active: active (running) since Wed 2017-04-12 16:34:28 UTC; 26s ago
  Process: 4243 ExecStop=/usr/bin/pg_ctl stop -D ${PGDATA} -s -m fast 
(code=exited, status=0/SUCCESS)


From: <[email protected]> on behalf of Pavel Studeník 
<[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Wednesday, April 12, 2017 at 12:22 PM
To: "[email protected]" <[email protected]>
Subject: Re: [Spacewalk-list] How to regenerate certs?

On 12.4.2017 18:05, Fouts, Christopher wrote:
Part of the spacewalk setup using “spacewalk-setup –disconnected” generated 
certs. How do I regenerate the certs, just re-run the command?

Chris





_______________________________________________

Spacewalk-list mailing list

[email protected]<mailto:[email protected]>

https://www.redhat.com/mailman/listinfo/spacewalk-list

Hi,
If you want regenerate SSL certifications for https, jabberd,... from 
/root/ssl-build, you can use command spacewalk-hostname-rename. It is tools 
when the hostname is changed or you need new certs.

>> yum install spacewalk-utils
>> spacewalk-hostname-rename <ipaddress>

And after that don't forget restart spacewalk servicies.

Regards
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to