Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The tool is used for management of System Services. It allows to correctly start, stop and perform other actions over various JeraSoft Billing Services such as RADIUS Server, SIP Server, Calculator, etc.

Code Block
languagebash
themeConfluence
titleUsage
<APP_PATH>/bin/system/service <ACTION> [<service-name>] [<options>]

The tool should be run under root or vcs user. The tool typically takes 2 arguments – action to perform and related system service. Actions prefixed with "all-*" do not require service name and operate over all services.

ActionDescription
<start>
start

Start System Service

Takes "--wait"

argument

option in order to wait and exit only when service finishes its execution.

<action>

Action to perform, one of the following:

  • start - start the service
  • stop - stop the service
  • restart - stop and then start the service
  • reload - force config re-read without restart
  • status - return current status of the tool
ArgumentDescription
<service-name>
Short name of the service. Run the tool without arguments to get a list of the services at your system. 
<action>

Action to perform, one of the following:

  • start - start the service
  • stop - stop the service
  • restart - stop and then start the service
  • reload - force config re-read without restart
  • status - return current status of the tool

Additionally, you may pass the next options:

...

--path=<path>

...

--user=<user>

...

stop

Stop System Service

restart
Stop and then start System Service
reload
Send reload (HUP) signal to the System Service (forces reload of settings, connections, etc)
status
Show current status of the System Service
all-start
Start all required System Services (list of services varies depending on the role of current node in the cluster)
all-stop
Stop all running System Services
all-status
Show status of all System Services on the current node

Usage Examples

...

Code Block
languagebash
titleRestart RADIUS Server
<VCS<APP_PATH>/bin/system/service restart bbradiusd restart


Code Block
languagebash
titleStart Files Downloader
<VCS<APP_PATH>/bin/system/service start files_downloader start


Code Block
languagebash
titleGet status of SIP ServerStart all required System Services
<APP<VCS_PATH>/bin/system/service bbsipd status
Panel
borderColor#ffffb3
bgColor#ffffb3
borderWidth2px

(warning)   Attention

The tool also complies with LSB Init Scripts standard. It allows analyzing exit code of each action in case of automated usage.
all-start



Cluster Manager

The tool is used to manage clusters. It allows to init the cluster, add and promote a slave to master, etc. 

...