rename pid to pidfile
This commit is contained in:
parent
a973d5515d
commit
12765c4039
@ -13,7 +13,7 @@ if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
|
|||||||
import fenrir
|
import fenrir
|
||||||
from daemonize import Daemonize
|
from daemonize import Daemonize
|
||||||
|
|
||||||
pid = "/tmp/fenrir.pid"
|
pidFile = "/tmp/fenrir.pid"
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
app = fenrir.fenrir()
|
app = fenrir.fenrir()
|
||||||
@ -21,6 +21,6 @@ def main():
|
|||||||
del app
|
del app
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
daemon = Daemonize(app="fenrir-daemon", pid=pid, action=main)
|
daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main)
|
||||||
daemon.start()
|
daemon.start()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user