Commit graph

102 commits

Author SHA1 Message Date
617ff6879b Updated PID file to be written as the current user and then chmoded 2012-09-04 13:18:03 -07:00
5ad22a23e8 Added resource_dir creation. 2012-09-04 13:11:50 -07:00
6bc99a18f3 Added trace function. 2012-09-04 12:54:15 -07:00
49e76c666b HUP -> Reload. 2012-09-03 13:50:09 -07:00
afc8978b78 New option: umask to set the umask value when the daemon launches. 2012-09-03 13:24:55 -07:00
2479dcc673 pid_running returns 0 on a PID less than 1 as reported by James Wright 2012-09-03 12:48:36 -07:00
9d3bf6a3e1 Added option kill_timeout. 2012-09-03 12:43:43 -07:00
d88fa81cdf Using warn instead of printing to stderr. 2012-09-03 12:27:03 -07:00
8c0a1fd754 Merge pull request #20 from karenetheridge/topic/misc_doc_fixes
Topic/misc doc fixes
2012-09-03 12:20:58 -07:00
04516f445e Merge pull request #26 from karenetheridge/topic/init.d_version_logging
include the date and module version in the generated init file
2012-09-03 12:14:02 -07:00
Karen Etheridge
ea7977f78b since we can figure out the absolute path, might as well use it 2012-06-15 13:36:24 -07:00
Karen Etheridge
d21eb7d582 document a good init_config value to use with perlbrew 2012-06-15 13:26:15 -07:00
Karen Etheridge
db10ca03e9 include the date and module version in the generated init file 2012-06-15 13:08:23 -07:00
Karen Etheridge
5d52839720 misc grammar and spelling 2012-06-11 21:09:14 +00:00
Karen Etheridge
c189a5f7e9 properly format code examples as code 2012-06-11 21:09:06 +00:00
chromatic
b15886199e Fixed a couple of documentation typos. 2012-06-08 15:41:40 -07:00
2f3b544096 A better MANIFEST.SKIP -- It works now. 2012-04-19 19:10:24 -07:00
dfdaeb58a2 Added Makefile to manifest.skip. 2012-04-19 18:03:56 -07:00
3a58e3d35e 0.0.7
* Added user and group accessors to set uid/gid based on names
    * Updated docs.
2012-04-15 23:19:06 -07:00
007ff90b4f Added user and group accessors, no more magical resolution of non-numeric uid/gid. 2012-04-15 22:46:39 -07:00
f2af7b215f 0.0.6 2012-15-04 SymKat <symkat@symkat.com>
* PID file will be deleted on do_stop
    * PID file will be created by the target user when ->uid set
    * uid() and gid() now take strings as well (doherty)
    * Kill signal order changed to TERM TERM INT KILL
    * init_config option added, gives LSB script a file to source.
    * Typo fixes
    * Mike Doherty (doherty) added to contrib (Thank you!)
2012-04-15 14:19:58 -07:00
Mike Doherty
becd46deef Credit myself in contributors 2012-04-15 14:55:13 -04:00
73c51f6ed3 Die on failure for uid/gid resolution; fixed a test. 2012-04-15 11:40:19 -07:00
a6b7a3f398 Merge pull request #12 from doherty/rt75453-typo
Fix a typo (RT #75453)
2012-04-15 11:09:35 -07:00
Mike Doherty
8414b31292 Fix a typo (RT #75453) 2012-04-15 11:56:17 -04:00
Mike Doherty
f7b4d074a0 Find the numeric uid/gid if given strings
Fixes GH #10
2012-04-15 11:54:16 -04:00
d939cae2fe Making the PID be created under the target user if we're downgrading permissions. Making read_pid do something sane if there is no PID file. 2012-04-15 01:26:00 -07:00
adde607cdf Restart functions now, and the PID files are removed on stop. This resolves issue 6 and issue 9. 2012-04-14 21:41:00 -07:00
c6cac65c09 Adding init_config to source a file for the init script. This resolves issue 7. 2012-04-14 20:54:09 -07:00
f8a67b2cd7 Resolving issue 8, kill is in wrong order. 2012-04-14 20:18:25 -07:00
5c9a3b3975 Dropping support for Perls before 5.8.1. 2012-02-20 02:45:18 -05:00
ccda8486d0 0.0.5
* Fixed an issue with the inital PID being invalid.
    * Added directory accessor to support chdir before exec.
    * Minor documentation changes
2012-02-19 01:21:33 -05:00
5774fa1504 Kill Use of uninitialized value in substitution errors. 2012-02-19 00:30:03 -05:00
e1da269e91 PID when creating file set to 0, _ was invalid. 2012-02-19 00:16:50 -05:00
11899fb56e Now with a valid email address. 2012-02-18 06:37:53 -05:00
06a4df4aba 0.0.4
* First release to cpan.
* Refactoring and review by Matt S. Trout
* I really changed the version this time!
2012-02-18 05:50:25 -05:00
Matt S Trout
e1144710d5 remove vestigial code accessor 2012-02-18 10:39:43 +00:00
a24bb304b9 _exit to exit, Daemon::Control passed to coderef. 2012-02-18 05:31:27 -05:00
Matt S Trout
ec9bb428cb refactor kill handling - cleaner and one less pid_running call 2012-02-18 10:02:10 +00:00
Matt S Trout
42944a8859 extract method: _launch_program 2012-02-18 10:02:10 +00:00
Matt S Trout
389e057e0a don't throw away the error on fork failure 2012-02-18 10:02:10 +00:00
Matt S Trout
420b5dcfb5 speling eror 2012-02-18 10:02:10 +00:00
Matt S Trout
6c7c1371ca kill spurious no warnings 'redefine' 2012-02-18 10:02:10 +00:00
Matt S Trout
55176e8adb move accessor block to top to be easily findable 2012-02-18 10:02:10 +00:00
Matt S Trout
2e8f5971c4 strip _ prefix on hash keys 2012-02-18 10:02:10 +00:00
Matt S Trout
8b8dd5f470 clean up accessors description 2012-02-18 10:02:10 +00:00
Matt S Trout
6c87425246 tweak header to look more like a usual one 2012-02-18 10:02:09 +00:00
Matt S Trout
a1135d3870 remove unused $AUTOLOAD declaration 2012-02-18 10:02:09 +00:00
218baffab0 0.0.3
* Test added for show_warnings.
    * Documentation updated for 0.0.2 changes.
    * Version changed this time.
2012-02-18 04:29:46 -05:00
06a746a797 0.0.2 2012-18-12 SymKat <symkat@symkat.com>
* Default fork mode changed to double.
    * Added show_warnings command instead of alerting
      about DWIM actions.
    * Fatal warnings changed from warn+exit to die (exits non-zero)
    * _fork handles undef/cannot fork.
    * $self->redirect_filehandles added
    * redirect_before_fork added (default 1)
    * With a code ref, $self is passed (can $control->redriect_filehandles)
2012-02-18 04:11:18 -05:00