First real UNIX daemon based version of the code. 1000 Cleanups and Fixes... :)
This commit is contained in:
parent
021977513d
commit
3e5222f97c
7 changed files with 380 additions and 132 deletions
26
test.py
Normal file
26
test.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#!/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 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue