26 lines
537 B
Python
26 lines
537 B
Python
#!/usr/bin/python3 -d
|
|
|
|
"""
|
|
Daemon testing file... Daemons in Python are new to me because I only worked on CLI, Gtk+ and Django projects before.
|
|
|
|
Let's have some fun... :)
|
|
"""
|
|
|
|
from uplink.daemon import Daemon
|
|
|
|
|
|
class Test(Daemon):
|
|
|
|
def __init__(self, pid_file, color, size):
|
|
super().__init__(pid_file)
|
|
self.pid_file = pid_file
|
|
self.color = color
|
|
self.size = size
|
|
|
|
def run(self):
|
|
# Write my daemon test code here:
|
|
return
|
|
|
|
|
|
test = Test("/tmp/uplink.pid", "Red", "XXL")
|
|
test.start()
|