diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-09-08 03:23:29 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-09-08 03:23:29 +0300 |
commit | c507644c2c56e1fe8476b1ce48aa1642e4a80bc8 (patch) | |
tree | 5dbf00876a4b39d11d878d7df69a53ae3386973f | |
parent | cff06d3dc719f5277ca9229d42153e5073a03f7e (diff) |
Set the umask for the calm daemon
It seems that daemon.DaemonContext() defaults to umask=0o000, which is
not what we want.
-rwxr-xr-x | calm/calm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/calm/calm.py b/calm/calm.py index adfface..889204b 100755 --- a/calm/calm.py +++ b/calm/calm.py @@ -503,6 +503,7 @@ def do_daemon(args, state): context = daemon.DaemonContext( stdout=sys.stdout, stderr=sys.stderr, + umask=0o002, pidfile=lockfile.pidlockfile.PIDLockFile(args.daemon)) running = True |