[Python-apps-commits] r4078 - in packages/pyicqt/trunk/debian (changelog init.d pyicqt.init)
nijel at users.alioth.debian.org
nijel at users.alioth.debian.org
Tue Nov 3 11:32:47 UTC 2009
Date: Tuesday, November 3, 2009 @ 11:32:47
Author: nijel
Revision: 4078
Fix naming of init script in source package.
Added:
packages/pyicqt/trunk/debian/pyicqt.init
(from rev 4077, packages/pyicqt/trunk/debian/init.d)
Modified:
packages/pyicqt/trunk/debian/changelog
Deleted:
packages/pyicqt/trunk/debian/init.d
Modified: packages/pyicqt/trunk/debian/changelog
===================================================================
--- packages/pyicqt/trunk/debian/changelog 2009-11-03 11:32:14 UTC (rev 4077)
+++ packages/pyicqt/trunk/debian/changelog 2009-11-03 11:32:47 UTC (rev 4078)
@@ -2,8 +2,9 @@
* NOT RELEASED YET
* Adjust provided service name in init script.
+ * Fix naming of init script in source package.
- -- Michal ÄihaÅ <nijel at debian.org> Tue, 03 Nov 2009 12:31:54 +0100
+ -- Michal ÄihaÅ <nijel at debian.org> Tue, 03 Nov 2009 12:32:29 +0100
pyicqt (0.8.1.5-1) unstable; urgency=low
Deleted: packages/pyicqt/trunk/debian/init.d
===================================================================
--- packages/pyicqt/trunk/debian/init.d 2009-11-03 11:32:14 UTC (rev 4077)
+++ packages/pyicqt/trunk/debian/init.d 2009-11-03 11:32:47 UTC (rev 4078)
@@ -1,68 +0,0 @@
-#! /bin/bash
-### BEGIN INIT INFO
-# Provides: pyicqt
-# Required-Start: $syslog
-# Required-Stop: $syslog
-# Should-Start: $local_fs
-# Should-Stop: $local_fs
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: starts ICQ transport for Jabber
-# Description: starts PyICQt which provides a gateway that allows Jabber users to communicate with their
-# contacts on the ICQ Messenger network. It can connect to any Jabber server
-# that supports the Connect component mechanism.
-### END INIT INFO
-
-export PATH=/sbin:/bin:/usr/sbin:/usr/bin
-
-. /lib/lsb/init-functions
-
-NAME=pyicqt
-DESC="ICQ transport for Jabber"
-
-PIDDIR=/var/run/pyicqt
-PIDFILE=$PIDDIR/$NAME.pid
-USER=pyicqt
-GROUP=pyicqt
-
-SSD_OPTS="--pidfile=$PIDFILE --name=python --user=$USER"
-
-DAEMON=/usr/bin/python
-OPTIONS="/usr/share/pyicqt/PyICQt.py --config=/etc/pyicqt.conf.xml --background -o pid=$PIDFILE -o spooldir=/var/lib/pyicqt -d --log=/var/log/pyicqt/pyicqt.log"
-
-test -f $DAEMON || exit 0
-
-if test ! -e $PIDDIR; then
- mkdir $PIDDIR
- chown $USER:$GROUP $PIDDIR
-fi
-
-case "$1" in
-start)
- log_daemon_msg "Starting $DESC" "$NAME"
- start-stop-daemon --start $SSD_OPTS --startas "$DAEMON" --chuid "$USER" -- $OPTIONS
- log_end_msg $?
- ;;
-stop)
- log_daemon_msg "Stopping $DESC" "$NAME"
- start-stop-daemon --stop $SSD_OPTS --retry 10
- log_end_msg $?
- ;;
-reload|force-reload)
- log_daemon_msg "Reloading $DESC" "$NAME"
- start-stop-daemon --stop $SSD_OPTS --signal HUP
- log_end_msg $?
- ;;
-restart)
- $0 stop
- $0 start
- ;;
-*)
- echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
- exit 1
- ;;
-esac
-
-exit 0
-
-# vim: filetype=sh
Copied: packages/pyicqt/trunk/debian/pyicqt.init (from rev 4077, packages/pyicqt/trunk/debian/init.d)
===================================================================
--- packages/pyicqt/trunk/debian/pyicqt.init (rev 0)
+++ packages/pyicqt/trunk/debian/pyicqt.init 2009-11-03 11:32:47 UTC (rev 4078)
@@ -0,0 +1,68 @@
+#! /bin/bash
+### BEGIN INIT INFO
+# Provides: pyicqt
+# Required-Start: $syslog
+# Required-Stop: $syslog
+# Should-Start: $local_fs
+# Should-Stop: $local_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: starts ICQ transport for Jabber
+# Description: starts PyICQt which provides a gateway that allows Jabber users to communicate with their
+# contacts on the ICQ Messenger network. It can connect to any Jabber server
+# that supports the Connect component mechanism.
+### END INIT INFO
+
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+. /lib/lsb/init-functions
+
+NAME=pyicqt
+DESC="ICQ transport for Jabber"
+
+PIDDIR=/var/run/pyicqt
+PIDFILE=$PIDDIR/$NAME.pid
+USER=pyicqt
+GROUP=pyicqt
+
+SSD_OPTS="--pidfile=$PIDFILE --name=python --user=$USER"
+
+DAEMON=/usr/bin/python
+OPTIONS="/usr/share/pyicqt/PyICQt.py --config=/etc/pyicqt.conf.xml --background -o pid=$PIDFILE -o spooldir=/var/lib/pyicqt -d --log=/var/log/pyicqt/pyicqt.log"
+
+test -f $DAEMON || exit 0
+
+if test ! -e $PIDDIR; then
+ mkdir $PIDDIR
+ chown $USER:$GROUP $PIDDIR
+fi
+
+case "$1" in
+start)
+ log_daemon_msg "Starting $DESC" "$NAME"
+ start-stop-daemon --start $SSD_OPTS --startas "$DAEMON" --chuid "$USER" -- $OPTIONS
+ log_end_msg $?
+ ;;
+stop)
+ log_daemon_msg "Stopping $DESC" "$NAME"
+ start-stop-daemon --stop $SSD_OPTS --retry 10
+ log_end_msg $?
+ ;;
+reload|force-reload)
+ log_daemon_msg "Reloading $DESC" "$NAME"
+ start-stop-daemon --stop $SSD_OPTS --signal HUP
+ log_end_msg $?
+ ;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+*)
+ echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# vim: filetype=sh
More information about the Python-apps-commits
mailing list