added ebuild for punjab
This commit is contained in:
parent
186ead94e6
commit
2b46f042cf
3 changed files with 81 additions and 0 deletions
23
net-im/punjab/files/punjab-initd
Normal file
23
net-im/punjab/files/punjab-initd
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/sbin/runscript
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use jabber-server
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting Punjab BOSH connection manager"
|
||||
start-stop-daemon --start --pidfile /var/run/jabber/punjab.pid -u jabber -g jabber \
|
||||
--exec /usr/bin/twistd -- -f /etc/jabber/punjab.tap -l /var/log/jabber/punjab.log \
|
||||
--pidfile /var/run/jabber/punjab.pid
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping Punjab BOSH connection manager"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/jabber/punjab.pid
|
||||
eend $?
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue