Skip to content

Instantly share code, notes, and snippets.

View pguillem's full-sized avatar
🐧
Molecular Bioengineer

Pedro M. Guillem-Gloria pguillem

🐧
Molecular Bioengineer
  • Technische Universität Dresden
  • Dresden, Germany
  • 16:23 (UTC +01:00)
  • LinkedIn in/ganian
View GitHub Profile
@pguillem
pguillem / jasmind_consumer
Last active July 4, 2022 15:54
init.d script to launch consume_MT_messages.py as a system daemon (Should work in Debian/Ubuntu)
#!/bin/sh
### BEGIN INIT INFO
# Provides: rabbit consumer
# Required-Start: $network $local_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Jasmin SMS Gateway Mysql Reporter Init Script
# Description: Jasmin SMS Gateway Mysql Reporter Init Script
### END INIT INFO
""" Simple mod from the original gist submitted by @zoufou
https://gist.github.com/zoufou/5701d71bf6e404d17cb4
Mod by: @pguillem
Purpose:
- Integrates PySQLPool lib to handle MySQL
- Visit https://pythonhosted.org/PySQLPool/tutorial.html
Requirements: