in reply to Perl script as daemon
However, IMO, there are 2 questions to which the answers are not as clear as they could be WRT the running of the script as a daemon:
If the answer to the first question is that it only appears to fail when run indirectly i.e. via cron(1M)/init(1M), that would tend to point to a difference/omission in run-time environment/permissions.
OTOH, if the answer to the 2nd question is that it starts, but later, halts, that is indicative of the requirement (on behalf of the script) for standard device access preventing continued script execution - this can be, to some extent, tested by running the script from the CLI, but running the command in background under nohup(1) e.g. nohup command & ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl script as daemon
by Anonymous Monk on Apr 26, 2009 at 22:10 UTC | |
by Bloodnok (Vicar) on Apr 26, 2009 at 22:31 UTC | |
by Anonymous Monk on Apr 27, 2009 at 08:02 UTC | |
by Bloodnok (Vicar) on Apr 27, 2009 at 12:07 UTC | |
by Anonymous Monk on Apr 28, 2009 at 17:14 UTC |