Update daemon_uid_gid.py

This commit is contained in:
Fedor Gogolev
2015-12-13 19:35:07 +03:00
parent fffb988740
commit 553358fb0a

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python
from os import getuid, geteuid, getgid, getegid
from os import getuid, geteuid, getgid, getegid, path
from sys import argv
from time import sleep
@@ -17,7 +17,7 @@ def main():
f.write(" ".join(map(str, uids + gids)))
group = "nogroup" if os.path.exists("/etc/debian_version") else "nobody"
group = "nogroup" if path.exists("/etc/debian_version") else "nobody"
daemon = Daemonize(app="test_app", pid=pid, action=main, user="nobody", group=group)
daemon.start()