A Module to help you daemonize your program in Unix-like system
Project description
# A Simple Class to make your program daemonize in Unix-like system
Usage:
from daemonized import Daemonize
@Daemonize()
def my_func():
# this func will be daemonize
pass
my_func()
# or, this
d = Daemonize()
d.stdout = '/tmp/d_out' # MUST BE ABSOLUTE PATH
d.stderr = '/tmp/d_err'
def my_func():
pass
d.make_daemon()
my_func()
Usage:
from daemonized import Daemonize
@Daemonize()
def my_func():
# this func will be daemonize
pass
my_func()
# or, this
d = Daemonize()
d.stdout = '/tmp/d_out' # MUST BE ABSOLUTE PATH
d.stderr = '/tmp/d_err'
def my_func():
pass
d.make_daemon()
my_func()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
daemonized-0.2.3.tar.gz
(1.4 kB
view hashes)