Skip to content

Instantly share code, notes, and snippets.

View memory's full-sized avatar

memory

View GitHub Profile
@memory
memory / python-supervise.py
Created January 29, 2012 22:17 — forked from ajdiaz/python-supervise.py
python snippet to handle runit/daemontools services
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
"""
Python supervise
----------------
This module provide a methods to handle runit [1]_ or daemontools [2]_ based
supervised services, using the control file provided. Here are a small
example::
@memory
memory / python-uschedule.py
Created January 29, 2012 22:14 — forked from ajdiaz/python-uschedule.py
python snippet to handle uschedule jobs
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
"""
Python uschedule handler
------------------------
This module provide a methods to handle uschedule_ scheduler by Uwe Ohse,
which is similar to cron, but safer. Here is an usage example::