[net-im] add spectrum and swift, both still need some cleanup but they happen to work for now
This commit is contained in:
26
net-im/spectrum/files/spectrum2.initd
Normal file
26
net-im/spectrum/files/spectrum2.initd
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
LOGFILE=/var/log/spectrum2/std.log
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use jabber-server
|
||||
}
|
||||
|
||||
start() {
|
||||
[ -d /var/run/spectrum2 ] || mkdir /var/run/spectrum2 && chown jabber:jabber /var/run/spectrum2 && chmod 750 /var/run/spectrum2
|
||||
ebegin "Starting ${PROTOCOL} Spectrum Transport"
|
||||
start-stop-daemon --start --user jabber --group jabber \
|
||||
--exec /usr/bin/spectrum2_manager start &> $LOGFILE
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${PROTOCOL} Spectrum Transport"
|
||||
start-stop-daemon --user jabber --group jabber \
|
||||
--exec /usr/bin/spectrum2_manager stop 1>>$LOGFILE 2>&1
|
||||
eend $?
|
||||
}
|
||||
4
net-im/spectrum/files/systemd/spectrum2.conf
Normal file
4
net-im/spectrum/files/systemd/spectrum2.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
# systemd tmpfile settings for spectrum2
|
||||
# See tmpfiles.d(5) for details
|
||||
|
||||
d /var/run/spectrum2 0750 jabber jabber -
|
||||
Reference in New Issue
Block a user