rename pid to pidfile

This commit is contained in:
chrys 2016-10-19 23:31:25 +02:00
parent a973d5515d
commit 12765c4039

View File

@ -13,7 +13,7 @@ if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path:
import fenrir
from daemonize import Daemonize
pid = "/tmp/fenrir.pid"
pidFile = "/tmp/fenrir.pid"
def main():
app = fenrir.fenrir()
@ -21,6 +21,6 @@ def main():
del app
if __name__ == "__main__":
daemon = Daemonize(app="fenrir-daemon", pid=pid, action=main)
daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main)
daemon.start()