Skip to content

Instantly share code, notes, and snippets.

View Madcanna's full-sized avatar
💭
Gehackt

Madcanna

💭
Gehackt
View GitHub Profile
@Mambix
Mambix / daemon.py
Created October 30, 2018 21:06
Python daemon
"""Generic linux daemon base class for python 3.x."""
import sys, os, time, atexit, signal
class daemon:
"""A generic daemon class.
Usage: subclass the daemon class and override the run() method."""
def __init__(self, pidfile): self.pidfile = pidfile
language: c
sudo: false
before_script: autoreconf --install
addons:
apt:
packages:
- check
install:
- ./ci/install-dependencies.sh
script: CFLAGS="-I`pwd`/Criterion/include" LDFLAGS="-L`pwd`/Criterion/build -Wl,-R -Wl,`pwd`/Criterion/build" ./configure && make && make check