Revision 5a062513
b/lib/daemon.py | ||
---|---|---|
249 | 249 |
@type optionparser: optparse.OptionParser |
250 | 250 |
@param optionparser: initialized optionparser with daemon-specific options |
251 | 251 |
(common -f -d options will be handled by this module) |
252 |
@type dirs: list of strings |
|
253 |
@param dirs: list of directories that must exist for this daemon to work |
|
252 |
@type dirs: list of (string, integer) |
|
253 |
@param dirs: list of directories that must be created if they don't exist, |
|
254 |
and the permissions to be used to create them |
|
254 | 255 |
@type check_fn: function which accepts (options, args) |
255 | 256 |
@param check_fn: function that checks start conditions and exits if they're |
256 | 257 |
not met |
Also available in: Unified diff