[SCM] Debian packaging of Pinto CPAN distribution branch, master, updated. 3465edf56086f63c33c5eb7bcfa7e8d762658763

Oleg Gashev oleg at gashev.net
Mon Jun 3 21:06:50 UTC 2013


The following commit has been merged in the master branch:
commit 3465edf56086f63c33c5eb7bcfa7e8d762658763
Author: Oleg Gashev <oleg at gashev.net>
Date:   Mon Jun 3 21:06:29 2013 +0000

    Updated init script: Added checking script runnig before start daemon.

diff --git a/debian/pinto.init b/debian/pinto.init
index a40f3a0..1751300 100644
--- a/debian/pinto.init
+++ b/debian/pinto.init
@@ -42,7 +42,9 @@ start_if_configured() {
 	if [ $START_PINTOD -ne 1 ]; then
                 log_warning_msg "$NAME disabled: not starting. To enable it edit $DEFAULTS_FILE"
                 exit 0
-	else
+	fi
+
+	if ! check_started; then
 		log_daemon_msg "Starting $DESC" "$NAME"
 		if ! START_ERROR=`start-stop-daemon --chuid pinto -u pinto --start --pidfile $PIDFILE --exec $DAEMON -- $OPTIONS 2>&1`; then
 			echo -n " "
@@ -51,7 +53,9 @@ start_if_configured() {
 		else
 			log_end_msg 0
 		fi
-        fi
+	else
+		log_warning_msg "already running!"
+	fi
 }
 
 stop() {

-- 
Debian packaging of Pinto CPAN distribution



More information about the Pkg-perl-cvs-commits mailing list