diprocd

diprocd Commit Details

Date:2011-12-22 15:00:41 (2 years 8 months ago)
Author:Loïc d'Anterroches
Branch:master
Commit:501a7dfdb842b9e8cbfce10b36c15d6de2b81907
Parents: faa2d302cc39534a0791cab9ff12f415067bfc0c
Message:Correctly use the user id.

Changes:
A.gitignore (full)
Mlib/worker.py (2 diffs)

File differences

.gitignore
1
*.pyc
lib/worker.py
7575
7676
7777
78
78
7979
8080
8181
......
170170
171171
172172
173
173
174
174175
175176
176177
self.args = cfg.get("args", [])
self.cwd = cfg.get("cwd", "/")
self.user = cfg.get("user", None)
self.user = cfg.get("user", "nobody")
self.chroot = cfg.get("chroot", None)
self.restart = cfg.get("restart", True)
logging.debug("Pid for StartDaemon is %s." % pid_file)
logging.debug("Env for %s is %s." % (self.name, self.env))
self.pid = utils_process.StartDaemon(my_cmd, self.env, self.cwd,
pidfile=pid_file)
pidfile=pid_file, uid=self.uid,
gid=self.gid)
if self.daemon:
logging.debug("Application %s is a daemon." % self.name)
# Here the launched command will again fork and write to

Archive Download the corresponding diff file

Branches