This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Caddy daemon | |
# chkconfig: 345 20 80 | |
# description: Caddy daemon | |
# processname: caddy | |
DAEMON_PATH="/usr/local/bin" | |
DAEMON='./caddy' | |
DAEMONOPTS="-conf=/etc/caddy/Caddyfile -log /var/log/caddy.log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Map oplog to you custom interface. To, for example, have triggers in mongo. | |
see example in '__main__' below | |
https://gist.github.com/rescommunes/4e5035242b8e4b07ff3a | |
""" | |
import logging | |
from time import sleep | |
import pickle |