Skip to content

Instantly share code, notes, and snippets.

@wallezhang
wallezhang / daemon.py
Created June 29, 2016 02:10 — forked from jamiesun/daemon.py
一个python守护进程的例子
#! /usr/bin/env python2.7
#encoding:utf-8
#@description:一个python守护进程的例子
#@tags:python,daemon
import sys
import os
import time
import atexit
from signal import SIGTERM