init-script angepasst
This commit is contained in:
parent
9cd8ca2bb1
commit
71f0deccc0
3 changed files with 26 additions and 2 deletions
23
net-im/pyicq-t/files/pyicq-t-0.8.1.5-initd
Normal file
23
net-im/pyicq-t/files/pyicq-t-0.8.1.5-initd
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/sbin/runscript
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/files/pyicq-t-0.8-initd,v 1.2 2007/06/04 20:50:16 griffon26 Exp $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use jabber-server
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting ICQ Jabber Transport"
|
||||
start-stop-daemon --start --pidfile /var/run/jabber/pyicq-t.pid --chuid jabber:jabber \
|
||||
--exec /usr/bin/python2.6 INSPATH/pyicq-t.py -- \
|
||||
-b -c /etc/jabber/pyicq-t.xml -l /var/log/jabber/pyicq-t.log
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ICQ Jabber Transport"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pyicq-t.pid
|
||||
eend $?
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue