ecb13a08e8
Merge pull request #44 from karenetheridge/topic/flush_stdout
...
ensure stdout is flushed immediately during pretty_print
2013-04-29 14:47:02 -07:00
Karen Etheridge
4fedc8521c
ensure stdout is flushed immediately during pretty_print
2013-04-29 09:53:33 -07:00
1efa777888
Merge pull request #43 from karenetheridge/topic/detect_dupe_process
...
"check_duplicate_process" feature
2013-04-22 16:22:17 -07:00
Karen Etheridge
42f433a62a
"prereq_no_process" feature
...
Searches the `ps` list for anything that looks like the daemon that might
already be running.
Both the program name and arguments are checked, as it appears different
operating systems vary as to how they populate `ps`: On ubuntu, my daemon
looks like:
/path/to/perl /path/to/program args
but on CentOS, the very same code shows up as:
/path/to/program args
2013-04-22 16:12:26 -07:00
cfadb8f133
Merge pull request #42 from karenetheridge/topic/fix_broken_tests
...
Topic/fix broken tests
2013-04-19 18:45:19 -07:00
74c8922b3e
Merge pull request #41 from karenetheridge/topic/faster_stop
...
check every second for kill_timeout seconds if the daemon has terminated...
2013-04-19 18:41:02 -07:00
Karen Etheridge
aaca307478
fix broken tests - piddir could be current directory
2013-04-19 13:37:59 -07:00
Karen Etheridge
a81b386a90
use tighter regexps to be sure of the daemon state -- qr/Running/ also matches "[Not Running]"!!!
2013-04-19 13:37:31 -07:00
Karen Etheridge
dbd92d556d
switch to using like() and is()
2013-04-19 13:32:13 -07:00
Karen Etheridge
e56baf1a88
check every second for kill_timeout seconds if the daemon has terminated, rather than only checking at the end
2013-04-19 11:40:26 -07:00
7e7e736ab8
Merge pull request #40 from karenetheridge/topic/morepatches_20130418
...
Topic/morepatches 20130418
2013-04-18 19:23:48 -07:00
Karen Etheridge
0aa0e9e4f9
we can always determine the new $USER, from uid if necessary
2013-04-18 16:50:15 -07:00
Karen Etheridge
bcc3e970c0
fix "Can't use an undefined value as an ARRAY reference at ... line 177" when exec fails and program_args is not defined
2013-04-18 16:49:18 -07:00
Karen Etheridge
e2753e5f8b
create the pid_file dir if it does not exist
...
- steal the _create_resource_dir sub to create a generic dir
- re-use it to create the pid dir
- with a few more trace() diagnostics too
2013-04-18 16:49:18 -07:00
Karen Etheridge
c3cf4cdfbb
spelling
2013-04-18 16:49:18 -07:00
Karen Etheridge
67736776a4
oops, I recorded these Changes wrong
2013-04-18 14:16:00 -07:00
a910724bb5
Merge pull request #39 from karenetheridge/topic/clean_up_changes_file_and_prereq
...
Topic/clean up changes file and prereq
2013-04-18 12:40:15 -07:00
Karen Etheridge
c9e0768e77
done_testing requires Test::More 0.88
2013-04-18 11:36:16 -07:00
Karen Etheridge
13f5d6b981
document some other important changes in the last release
2013-04-18 11:35:52 -07:00
Karen Etheridge
54e7b3c302
add missing version entry for most recent release
2013-04-16 12:35:43 -07:00
Karen Etheridge
4ff370c279
fix dates so they conform to ISO8601 (YYYY-MM-DD)
2013-04-16 12:35:19 -07:00
Karen Etheridge
6b8a1fbef5
changelog refers to true version numbers used in releases
2013-04-16 12:33:26 -07:00
18ca0723b8
Updated readme, thanks quicksilver.
2013-02-26 06:53:55 -08:00
0cf3808212
Version Bump - Released to CPAN.
2013-02-26 01:37:47 -08:00
084bd3f6e2
Merge pull request #36 from kromg/master
...
Fixed warning "Use of uninitialized value $called_with in substitution (s///) at Daemon-Control/lib/Daemon/Control.pm line 505."
2013-02-06 06:03:07 -08:00
Giacomo Montagner
156a8cba84
fixed warn "uninitialized value $called_with"
2013-02-03 04:58:40 +01:00
Kaitlyn Parkhurst
2c6536192d
Problems with earlier version of File::Path not giving make_path
2012-11-20 10:35:48 -08:00
94af641ea7
Missing depend added for Test::More 0.42. Thanks Jeremy Jack <3.
2012-09-27 17:17:34 -07:00
7eb87c47c4
Merge pull request #34 from karenetheridge/topic/spelling_fixes
...
Topic/spelling fixes - Thanks!
2012-09-09 21:36:55 -07:00
Karen Etheridge
62d8c37d98
spelling
2012-09-08 16:17:00 -07:00
Karen Etheridge
5ff792cb06
fixed all trailing whitespace
2012-09-08 16:14:57 -07:00
Karen Etheridge
eb18385d0d
standard .gitignore file
2012-09-08 16:12:11 -07:00
f878431080
update COPYRIGHT as well to indicate their copyright
2012-09-04 15:18:17 -07:00
dbc2f629b7
Thank you, (mt) Media Temple.
2012-09-04 15:11:00 -07:00
e14a853d71
Documentation updates.
2012-09-04 15:03:37 -07:00
def0e11b71
User staging + inline init code.
2012-09-04 14:44:07 -07:00
b021c8c693
Added help accessor, and do_help.
2012-09-04 13:54:35 -07:00
a4af26baa3
No writing of PID when single-forking.
2012-09-04 13:38:54 -07:00
242cc76e20
Automatically fill in the GID if not given, but UID is set.
2012-09-04 13:35:22 -07:00
Karen Etheridge
8426836310
List actions when an invalid one is given.
2012-09-04 13:25:46 -07:00
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