Giter Club home page Giter Club logo

gw-admin's Introduction

These are a bunch of scripts and configs to administer the Gateway
otherwise known as the Kannel WAP/SMS Gateway.

./
    * box_admin - Gateway administration plumbing shell functions.
    * gw - Gateway startup shell functions.
    * gw_commands - Shell wrapper functions for the gateway's http
      administration verbs.
    * gw_vars - The Gateway environment is defined here.
    * gw_config.tar.gz - Configuration starter pack.

./admin/
    Systemd uses these scripts to start/stop/reload the box named by the file
    name.
    ./admin/start
        ** bearerbox.sh - Start bearerbox.
        ** smsbox.sh - Start smsbox.
        ** sqlbox.sh - Start sqlbox.
    ./admin/stop
        ** bearerbox.sh - Stop bearerbox.
        ** smsbox.sh - Stop smsbox.
        ** sqlbox.sh - Stop sqlbox.
    ./admin/reload
        ** bearerbox.sh - Reload bearerbox.
        ** smsbox.sh - Reload smsbox.
        ** sqlbox.sh - Reload sqlbox.
    ./admin/watchers
        ** watch_sqlbox_queues.sh - Template for checking sqlbox queues.
           exits 0 for OK and 1 for NOK.
    * panic_routine - Exectuted by parachute watcher process after bbox child
      fails or dies.

./logrotate/
    * kannel - Logrotate config for kannel logs.

./snippets
    * bashrc.snip - Snippet of shell to inject into the bashrc file.

./systemd/
    Systemd related config miscellany.
    ./systemd/env
        ** kannel - Systemd environment file that holds some variable
           definitions.
    * bearerbox.service - Service definition template for bearerbox.
    * smsbox.service - Service definition template for smsbox.
    * sqlbox.service - Service definition template for sqlbox.
    * gw_start.service - Service definition template for the gateway.
      [ Deprecated ]
    * test_gw_systemd_infection - Script to test if systemd service files
      have been well copied (infected).

## Bootstrap instructions.
    On cloning the repo onto a fresh server.
    cd into it ("it" being the directory you elected to clone into) and run:
        . gw
        install_gw
    This shall first ask you for your preferred gateway_name, please provide it.
    The gateway admin functions and functionality shall then be loaded into your
    environment while also having your .bashrc edited to have this happen each time
    you log in as the current user.

## To start the gateway:
    systemctl start bearerbox smsbox sqlbox

    Individual boxes can be started on their own by specifying each box in turn
    with the systemctl start command.

## To stop the gateway:
    systemctl stop bearerbox smsbox sqlbox

    Individual boxes can be stopped on their own by specifying each box in turn
    with the systemctl stop command.

gw-admin's People

Contributors

thebanttu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.