From 4933253731106cdcb6af32650e573a91dcd0c20d Mon Sep 17 00:00:00 2001 From: djrzulf Date: Sun, 19 Aug 2007 11:39:13 +0000 Subject: [PATCH] - added pyicqt to start daemon in background, - updates at init, Changed files: PyICQt.init -> 1.3 pyicqt.sh -> 1.1 --- PyICQt.init | 4 ++-- pyicqt.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 pyicqt.sh diff --git a/PyICQt.init b/PyICQt.init index 9c22281..206f07a 100755 --- a/PyICQt.init +++ b/PyICQt.init @@ -13,7 +13,7 @@ # Check that networking is up. if is_yes "${NETWORKING}"; then if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then - msg_network_down PyICQt + msg_network_down pyICQt exit 1 fi else @@ -27,7 +27,7 @@ case "$1" in # Check if the service is already running? if [ ! -f /var/lock/subsys/PyICQt ]; then msg_starting "Jabber ICQ transport" - daemon /usr/share/pyicqt/PyICQt.py -c /etc/jabber/PyICQt.xml + daemon /usr/sbin/pyicqt.sh /etc/jabber/PyICQt.xml RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/PyICQt else diff --git a/pyicqt.sh b/pyicqt.sh new file mode 100644 index 0000000..0950c48 --- /dev/null +++ b/pyicqt.sh @@ -0,0 +1,3 @@ +#!/bin/sh +/usr/share/pyicqt/PyICQt.py -c $1 & + -- 2.44.0