1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

finish xsce -> iiab rename

This commit is contained in:
Jerry Vonau 2017-07-19 15:38:50 -05:00
parent 99b0792c02
commit 105c1c8b4a
7 changed files with 23 additions and 25 deletions

View file

@ -3,9 +3,9 @@
# #
# ejabberd now handles domain changes in the initrd script # ejabberd now handles domain changes in the initrd script
# #
SERVICE_NAME=ejabberd-xs SERVICE_NAME=ejabberd-iiab
CONFIG_LIST="/etc/ejabberd/ejabberd-xs.cfg" CONFIG_LIST="/etc/ejabberd/ejabberd-iiab.cfg"
# taken from ejabberd spec %post # taken from ejabberd spec %post
# taken from ejabberd spec %post # taken from ejabberd spec %post

View file

@ -2,7 +2,7 @@
## Where should ejabberd find its configuration file? ## Where should ejabberd find its configuration file?
# #
CONFIG_FILE=/etc/ejabberd/ejabberd-xs.cfg CONFIG_FILE=/etc/ejabberd/ejabberd-iiab.cfg
## ULIMIT_MAX_FILES alters the number of files that ejabberd is ## ULIMIT_MAX_FILES alters the number of files that ejabberd is
## allowed to have open at once. If it is unset the system default ## allowed to have open at once. If it is unset the system default

View file

@ -17,10 +17,13 @@
# Description: A distributed, fault-tolerant Jabber/XMPP server # Description: A distributed, fault-tolerant Jabber/XMPP server
### END INIT INFO ### END INIT INFO
SYS_DOMAIN_FILE=/etc/sysconfig/iiab_domain_name
OUR_DOMAIN_FILE=/etc/sysconfig/ejabberd_domain_name
. /etc/rc.d/init.d/functions . /etc/rc.d/init.d/functions
if [ -r /etc/sysconfig/ejabberd-xs ]; then if [ -r /etc/sysconfig/ejabberd-iiab ]; then
. /etc/sysconfig/ejabberd-xs . /etc/sysconfig/ejabberd-iiab
fi fi
if [ ! "$CONFIG_FILE" ]; then if [ ! "$CONFIG_FILE" ]; then
@ -34,25 +37,22 @@ chown ejabberd:ejabberd /var/run/ejabberd
# avoid using consolehelper, call ejabberdctl directly # avoid using consolehelper, call ejabberdctl directly
progctl=/usr/sbin/ejabberdctl progctl=/usr/sbin/ejabberdctl
SYS_DOMAIN_FILE=/etc/sysconfig/xs_domain_name
OUR_DOMAIN_FILE=/etc/sysconfig/ejabberd_domain_name
check_domain_configured() { check_domain_configured() {
if [ ! -e /etc/sysconfig/xs_domain_name ]; then if [ ! -e $SYS_DOMAIN_FILE ]; then
echo "Domain not configured yet" > /dev/stderr echo "Domain not configured yet 1" > /dev/stderr
exit 1; exit 1;
fi fi
domain=`cat "$SYS_DOMAIN_FILE" ` domain=`cat "$SYS_DOMAIN_FILE" `
if [ "$domain" == "random.xs.laptop.org" ]; then if [ "$domain" == "random.xs.laptop.org" ]; then
echo "Domain not configured yet" > /dev/stderr echo "Domain not configured yet 2" > /dev/stderr
exit 1; exit 1;
fi fi
#hostname=`hostname -f` #hostname=`hostname -f`
hostname=`hostname ` hostname=`hostname `
if [ "$hostname" == "localhost.localdomain" ]; then if [ "$hostname" == "localhost.localdomain" ]; then
echo "Domain not configured yet" > /dev/stderr echo "Domain not configured yet 3" > /dev/stderr
fi fi
# if [ "$hostname" != "schoolserver.$domain" ]; then # if [ "$hostname" != "schoolserver.$domain" ]; then
@ -218,5 +218,3 @@ case "$1" in
esac esac
exit $RETVAL exit $RETVAL

View file

@ -8,9 +8,9 @@ User=root
Group=root Group=root
LimitNOFILE=50000 LimitNOFILE=50000
RestartSec=5 RestartSec=5
EnvironmentFile=/etc/sysconfig/ejabberd-xs EnvironmentFile=/etc/sysconfig/ejabberd-iiab
ExecStart=/usr/libexec/ejabberd-xs start ExecStart=/usr/libexec/ejabberd-iiab start
ExecStop=/usr/libexec/ejabberd-xs stop ExecStop=/usr/libexec/ejabberd-iiab stop
RemainAfterExit=yes RemainAfterExit=yes
[Install] [Install]

View file

@ -2,7 +2,7 @@
progctl=/usr/sbin/ejabberdctl progctl=/usr/sbin/ejabberdctl
SYS_DOMAIN_FILE=/etc/sysconfig/xs_domain_name SYS_DOMAIN_FILE=/etc/sysconfig/iiab_domain_name
OUR_DOMAIN_FILE=/etc/sysconfig/ejabberd_domain_name OUR_DOMAIN_FILE=/etc/sysconfig/ejabberd_domain_name
setup_online_srg() { setup_online_srg() {

View file

@ -17,6 +17,9 @@
# Description: A distributed, fault-tolerant Jabber/XMPP server # Description: A distributed, fault-tolerant Jabber/XMPP server
### END INIT INFO ### END INIT INFO
SYS_DOMAIN_FILE=/etc/sysconfig/iiab_domain_name
OUR_DOMAIN_FILE=/etc/sysconfig/ejabberd_domain_name
. /etc/rc.d/init.d/functions . /etc/rc.d/init.d/functions
if [ -r /etc/sysconfig/ejabberd-xs ]; then if [ -r /etc/sysconfig/ejabberd-xs ]; then
@ -34,25 +37,22 @@ chown ejabberd:ejabberd /var/run/ejabberd
# avoid using consolehelper, call ejabberdctl directly # avoid using consolehelper, call ejabberdctl directly
progctl=/usr/sbin/ejabberdctl progctl=/usr/sbin/ejabberdctl
SYS_DOMAIN_FILE=/etc/sysconfig/xs_domain_name
OUR_DOMAIN_FILE=/etc/sysconfig/ejabberd_domain_name
check_domain_configured() { check_domain_configured() {
if [ ! -e /etc/sysconfig/xs_domain_name ]; then if [ ! -e $SYS_DOMAIN_FILE ]; then
echo "Domain not configured yet" > /dev/stderr echo "Domain not configured yet 1" > /dev/stderr
exit 1; exit 1;
fi fi
domain=`cat "$SYS_DOMAIN_FILE" ` domain=`cat "$SYS_DOMAIN_FILE" `
if [ "$domain" == "random.xs.laptop.org" ]; then if [ "$domain" == "random.xs.laptop.org" ]; then
echo "Domain not configured yet" > /dev/stderr echo "Domain not configured yet 2" > /dev/stderr
exit 1; exit 1;
fi fi
#hostname=`hostname -f` #hostname=`hostname -f`
hostname=`hostname ` hostname=`hostname `
if [ "$hostname" == "localhost.localdomain" ]; then if [ "$hostname" == "localhost.localdomain" ]; then
echo "Domain not configured yet" > /dev/stderr echo "Domain not configured yet 3" > /dev/stderr
fi fi
# if [ "$hostname" != "schoolserver.$domain" ]; then # if [ "$hostname" != "schoolserver.$domain" ]; then