Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

status script needeed #704

Closed
pki-bot opened this issue Oct 2, 2020 · 2 comments
Closed

status script needeed #704

pki-bot opened this issue Oct 2, 2020 · 2 comments

Comments

@pki-bot
Copy link

pki-bot commented Oct 2, 2020

This issue was migrated from Pagure Issue #132. Originally filed by msauton (@msauton) on 2012-03-21 02:12:34:


Although this may not be the right place holder, I created the following KB article:
https://access.redhat.com/knowledge/solutions/85193
How can I get the Dogtag Certificate System status on Fedora 16 with systemd?

My "problem" is now that systemd in F16 replaces most of the previous init scripts, the status information from the service ran has been removed and replaced with other status information related to systemd instead.
So I am missing all the useful application related information, it is more difficult to get the services information, another script is needed.

Work around is like this:

less /var/lib/pki-ca/conf/server.xml
...snip...

...snip...

Example of status information returned from previous init scripts and RPM initscripts, without systemd:

/etc/init.d/pki-ca status
pki-ca (pid 25204) is running ...

Unsecure Port       = http://ca1.example.com:9180/ca/ee/ca
Secure Agent Port   = https://ca1.example.com:9443/ca/agent/ca
Secure EE Port      = https://ca1.example.com:9444/ca/ee/ca
Secure Admin Port   = https://ca1.example.com:9445/ca/services
EE Client Auth Port = https://ca1.example.com:9446/ca/eeca/ca
PKI Console Port    = pkiconsole https://ca1.example.com:9445/ca
Tomcat Port         = 9701 (for shutdown)

PKI Instance Name:   pki-ca

PKI Subsystem Type:  Root CA (Security Domain)

Registered PKI Security Domain Information:
==========================================================================
Name:  caroot
URL:   https://ca1.example.com:9445
==========================================================================

Example of status information returned by systemd for pki-ca:

/bin/systemctl status pki-cad@pki-ca.service
pki-cad@pki-ca.service - PKI Certificate Authority Server pki-ca
Loaded: loaded (/lib/systemd/system/pki-cad@.service; enabled)
Active: active (running) since Tue, 20 Mar 2012 15:55:52 -0700; 42min ago
Process: 11642 ExecStop=/usr/bin/pkicontrol stop ca %i (code=exited, status=0/SUCCESS)
Process: 11708 ExecStart=/usr/bin/pkicontrol start ca %i (code=exited, status=0/SUCCESS)
Main PID: 11761 (java)
CGroup: name=systemd:/system/pki-cad@.service/pki-ca
└ 11761 /usr/lib/jvm/jre/bin/java -classpath :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/var/lib/pk...

@pki-bot
Copy link
Author

pki-bot commented Oct 2, 2020

Comment from vakwetu (@vakwetu) at 2012-03-22 19:59:43

There is such a command :

pkicontrol status ca

@pki-bot pki-bot closed this as completed Oct 2, 2020
@pki-bot
Copy link
Author

pki-bot commented Oct 2, 2020

Comment from msauton (@msauton) at 2017-02-27 13:59:12

Metadata Update from @msauton:

  • Issue assigned to jmagne
  • Issue set to the milestone: N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant