Initialize a Celery command with common daemon options.
(self, *args, **kwargs)
| 283 | """Daemon commands.""" |
| 284 | |
| 285 | def __init__(self, *args, **kwargs): |
| 286 | """Initialize a Celery command with common daemon options.""" |
| 287 | super().__init__(*args, **kwargs) |
| 288 | self.params.extend(( |
| 289 | DaemonOption("--logfile", "-f", help="Log destination; defaults to stderr"), |
| 290 | DaemonOption("--pidfile", help="PID file path; defaults to no PID file"), |
| 291 | DaemonOption("--uid", help="Drops privileges to this user ID"), |
| 292 | DaemonOption("--gid", help="Drops privileges to this group ID"), |
| 293 | DaemonOption("--umask", help="Create files and directories with this umask"), |
| 294 | DaemonOption("--executable", help="Override path to the Python executable"), |
| 295 | )) |
| 296 | |
| 297 | |
| 298 | class CommaSeparatedList(ParamType): |
nothing calls this directly
no test coverage detected