From b862858e1ecdf45f07f8f9c4a5c93f082675e03c Mon Sep 17 00:00:00 2001 From: "Paul Buetow (mars.fritz.box)" Date: Sat, 19 Nov 2011 22:42:50 +0100 Subject: Typo and new wish --- WHISHLIST | 4 ---- WISHLIST | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 WHISHLIST create mode 100644 WISHLIST diff --git a/WHISHLIST b/WHISHLIST deleted file mode 100644 index 3c82f71..0000000 --- a/WHISHLIST +++ /dev/null @@ -1,4 +0,0 @@ -* Add parallel module execution support (threads or forks) -* Add special signal handling (e.g. trigger modules) -* Allow to enable/disable time carry calculation - diff --git a/WISHLIST b/WISHLIST new file mode 100644 index 0000000..165b30d --- /dev/null +++ b/WISHLIST @@ -0,0 +1,5 @@ +* Add parallel module execution support (threads or forks) +* Add special signal handling (e.g. trigger modules) +* Allow to enable/disable time carry calculation +* Debian/Ubuntu .debs + -- cgit v1.2.3 From 113f1f291ab12784905da8c5897526a883428e66 Mon Sep 17 00:00:00 2001 From: "Paul Buetow (mars.fritz.box)" Date: Sat, 19 Nov 2011 22:43:52 +0100 Subject: Masterversion --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 34dfff2..c6befe9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -PerlDaemon v1.2.1 +PerlDaemon v1.2.1-master -- cgit v1.2.3 From d5bd05318256ab77dfa70665ae26fe7e8a3b900b Mon Sep 17 00:00:00 2001 From: "Paul Buetow (mars.fritz.box)" Date: Sat, 19 Nov 2011 22:44:16 +0100 Subject: Develversion --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index c6befe9..83f7463 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -PerlDaemon v1.2.1-master +PerlDaemon v1.3-devel -- cgit v1.2.3 From 32e3efa12faa2ce767168e8d36bb1a097bef6d4d Mon Sep 17 00:00:00 2001 From: "Paul Buetow (mars.fritz.box)" Date: Sat, 19 Nov 2011 23:29:41 +0100 Subject: Modify text --- lib/PerlDaemonModules/ExampleModule.pm | 2 +- lib/PerlDaemonModules/ExampleModule2.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PerlDaemonModules/ExampleModule.pm b/lib/PerlDaemonModules/ExampleModule.pm index e9cf4b8..7d0fdfa 100644 --- a/lib/PerlDaemonModules/ExampleModule.pm +++ b/lib/PerlDaemonModules/ExampleModule.pm @@ -10,7 +10,7 @@ sub new ($$$) { my $self = bless { conf => $conf }, $class; - # Store some private module stuff + # Store some private persistent module stuff $self->{counter} = 0; return $self; diff --git a/lib/PerlDaemonModules/ExampleModule2.pm b/lib/PerlDaemonModules/ExampleModule2.pm index 74fdd05..be05fdb 100644 --- a/lib/PerlDaemonModules/ExampleModule2.pm +++ b/lib/PerlDaemonModules/ExampleModule2.pm @@ -10,7 +10,7 @@ sub new ($$$) { my $self = bless { conf => $conf }, $class; - # Store some private module stuff + # Store some private persistent module stuff $self->{counter} = 0; return $self; -- cgit v1.2.3 From fa042cc8b0e5c7c4d69290aecae1034c6b2ca530 Mon Sep 17 00:00:00 2001 From: "Paul Buetow (mars.fritz.box)" Date: Sun, 16 Feb 2014 14:57:03 +0100 Subject: change email addr --- COPYING | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/COPYING b/COPYING index 4c1a107..46e6fae 100644 --- a/COPYING +++ b/COPYING @@ -1,6 +1,6 @@ # PerlDaemon (c) 2010, 2011, Dipl.-Inform. (FH) Paul Buetow # -# E-Mail: perldaemon@mx.buetow.org WWW: http://perldaemon.buetow.org +# E-Mail: perldaemon@dev.buetow.org WWW: http://perldaemon.buetow.org # # All rights reserved. # -- cgit v1.2.3 From b4558f620a4e30731b01b6e0f60da869e3de5e1b Mon Sep 17 00:00:00 2001 From: "admin (centauri.fritz.box)" Date: Sat, 22 Mar 2014 12:17:10 +0100 Subject: fix git repo --- control | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) mode change 120000 => 100755 control diff --git a/control b/control deleted file mode 120000 index 187e168..0000000 --- a/control +++ /dev/null @@ -1 +0,0 @@ -bin/perldaemon \ No newline at end of file diff --git a/control b/control new file mode 100755 index 0000000..11c1a7e --- /dev/null +++ b/control @@ -0,0 +1,74 @@ +#!/usr/bin/env bash +# PerlDaemon (c) 2010, 2011, Dipl.-Inform. (FH) Paul Buetow (http://perldaemon.buetow.org) + +declare -r ARG=$1 +declare -a LIBPATHS=(./lib ../lib /lib /usr/lib /usr/local/lib /opt/lib) + +for path in ${LIBPATHS[@]}; do + if [ -f $path/PerlDaemon/PerlDaemon.pl ]; then + LIBDIR=$path + break + fi +done + +if [ -z "$LIBDIR" ]; then + echo No PerlDaemon module path found + exit 1 +fi + +start () { + echo Starting daemon now... + perl -I$LIBDIR $LIBDIR/PerlDaemon/PerlDaemon.pl config=./conf/perldaemon.conf $@ +} + +stop () { + if [ -f ./run/perldaemon.pid ]; then + echo Stopping daemon now... + kill $(cat ./run/perldaemon.pid); + else + echo "No pidfile found (not running?) " + fi +} + +logrotate () { + echo Triggering a logrotate + kill -HUP $(cat ./run/perldaemon.pid) +} + +keys () { + perl -I$LIBDIR $LIBDIR/PerlDaemon/PerlDaemon.pl config=./conf/perldaemon.conf keys=1 $@ +} + +case $ARG in + start) + shift + start $@ + ;; + + stop) + stop + ;; + + restart) + shift + stop + start $@ + ;; + + logrotate) + logrotate + ;; + + foreground) + start daemon.daemonize=no $@ + ;; + + keys) + keys $@ + ;; + + *) + echo "Usage: $0 [key1=val1 [[key2=val2] ...]]" + exit 1 + ;; +esac -- cgit v1.2.3