GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Control(3) User Contributed Perl Documentation OpenXPKI::Control(3)

This is a static helper class that collects some common methods to interact with the OpenXPKI system.

Parameters common to all methods:

CONFIG
filesystem path to the config git repository
SILENT
set to 1 to surpress any output

All methods are static and return 0 on success, 1 on configuration errors and 2 on system errors.

All Parameters to methods are optional, if no parameters are given the OpenXPKI::Config Layer is intanciated and queried for the needed values.

Start the server.

Parameters:

PID Pid to check for a running server
FOREGROUND (0|1) Weather to start the daemon in foreground (implies restart)
RESTART (0|1) Weather to restart a running server
DEBUG_LEVEL hashref: module => level
DEBUG_BITMASK hashref: module => bitmask
DEBUG_NOCENSOR (0|1) turn of censoring of debug messages
KEEP_TEMP (0|1) Weather to not delete temp files
!!THIS MIGHT BE A SECURITY RISK !! as files might contain private keys or other confidential data!

Stop the server

Parameters:

PID or PIDFILE

Check if the server is running

Parameters:

SLEEP
Wait sleep seconds before testing

Reload some parts of the config (sends a HUP to the server pid)

Parameters:

PID or PIDFILE

Get a list of all process belonging to this instance

Returns a hash with keys:

server
Holding the pid of the main server process.
watchdog
List of running watchdog process. Usually this is only a single pid but can also have more than one. If empty, the watchdog was either disabled or terminated due to too many internal errors.
worker
List of pids of running session workers (connected to the socket). This might also be empty if no process is running.
workflow
List of pids of all workers currently handling workflows (contains watchdog and user initiated requests).

Get a list of all running workers with pid, time and info
2022-05-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.