Skip to main content

A broker server for sending SMS.

Project description

image

A broker server for sending SMS.

Installation :pick:

apt install python3-venv -y
mkdir -p /opt/kds-sms-server
python3 -m venv /opt/kds-sms-server
source /opt/kds-sms-server/bin/activate
pip install kds-sms-server
ln /opt/kds-sms-server/bin/kds-sms-server /usr/bin/kds-sms-server
deactivate
# setup settings.json in /opt/kds-sms-server
kds-sms-server init-db
echo """[Unit]
Description=SMS Broker - Listener - Responsible for receiving SMS as well as for the general API and UI.
After=multi-user.target

[Service]
Type=simple
Restart=always
WorkingDirectory=/opt/kds-sms-server
ExecStart=/opt/kds-sms-server/bin/kds-sms-server listener

[Install]
WantedBy=multi-user.target""" > /etc/systemd/system/kds-sms-server-listener.service
echo """[Unit]
Description=SMS Broker - Worker - Responsible for processing SMS and database cleanup processes.
After=multi-user.target

[Service]
Type=simple
Restart=always
WorkingDirectory=/opt/kds-sms-server
ExecStart=/opt/kds-sms-server/bin/kds-sms-server worker

[Install]
WantedBy=multi-user.target""" > /etc/systemd/system/kds-sms-server-worker.service
systemctl daemon-reload
systemctl enable kds-sms-server-listener.service
systemctl enable kds-sms-server-worker.service
systemctl start kds-sms-server-listener.service
systemctl start kds-sms-server-worker.service

Update :hourglass_flowing_sand:

source /opt/kds-sms-server/bin/activate
pip install -U kds-sms-server
deactivate

Debug :gear:

systemctl stop kds-sms-server-listener.service
systemctl stop kds-sms-server-worker.service
kds-sms-server listener # Or kds-sms-server worker 
systemctl start kds-sms-server-listener.service
systemctl start kds-sms-server-worker.service

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kds_sms_server-3.3.0.tar.gz (245.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kds_sms_server-3.3.0-py3-none-any.whl (257.5 kB view details)

Uploaded Python 3

File details

Details for the file kds_sms_server-3.3.0.tar.gz.

File metadata

  • Download URL: kds_sms_server-3.3.0.tar.gz
  • Upload date:
  • Size: 245.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for kds_sms_server-3.3.0.tar.gz
Algorithm Hash digest
SHA256 e94e3142b25472e77e814377789f64dd06183a717f2c2b89fccc4ae174f0b68a
MD5 d4d8b2d9fe6962cfc3eb490aaf3e082e
BLAKE2b-256 e55ea3252f9efa0b45c4a3283aa0f895870f49964a97324f56239c31d7d965c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for kds_sms_server-3.3.0.tar.gz:

Publisher: build_and_publish.yml on KDS-Erfurt/kds-sms-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kds_sms_server-3.3.0-py3-none-any.whl.

File metadata

  • Download URL: kds_sms_server-3.3.0-py3-none-any.whl
  • Upload date:
  • Size: 257.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for kds_sms_server-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c832cda7d127a9b4cd8e2734069da6f0740e094970a8ece815acf7de1e8e60a0
MD5 8f651fefb165f3c9b1883c397e80f129
BLAKE2b-256 77faf36ff6b2f5f613fb50422d2ab8fd3ecdc8453bfd632f1bfc59fa638ce269

See more details on using hashes here.

Provenance

The following attestation bundles were made for kds_sms_server-3.3.0-py3-none-any.whl:

Publisher: build_and_publish.yml on KDS-Erfurt/kds-sms-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page