Unified some Debian and RHEL package scripts and conf files

Monotone-Parent: ae854e507775b3fdae95a26349d47bfe9fc5272e
Monotone-Revision: bf6121d3dc97f8818e141ab359174b9b83aefbb7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-10-17T19:02:12
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-10-17 19:02:12 +00:00
parent 89fed63557
commit 77c2e71d77
6 changed files with 12 additions and 132 deletions

View File

@@ -30,7 +30,7 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=sogo
DAEMON=/usr/GNUstep/System/Tools/Admin/sogod
DAEMON=/usr/sbin/sogod
DESC="SOGo"
USER=$NAME

View File

@@ -1,56 +0,0 @@
#!/bin/bash
# SOGo daemon wrapper
#
# Copyright (C) 2007-2009 Inverse inc.
#
# Authors: Wolfgang Sourdeau <wsourdeau@inverse.ca>
# Francis Lachapelle <flachapelle@inverse.ca>
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This file is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
PIDFILE=/var/run/sogo/sogo.pid
LOGFILE=/var/log/sogo/sogo.log
if [ -f /etc/GNUstep/GNUstep.conf ]; then
. /etc/GNUstep/GNUstep.conf
else
echo "Can't find GNUstep.conf"
exit 1
fi
if [ -x $HOME/$GNUSTEP_USER_DIR_ADMIN_TOOLS/sogod ]; then
sogod="$HOME/$GNUSTEP_USER_DIR_ADMIN_TOOLS/sogod"
elif [ -x $GNUSTEP_LOCAL_ADMIN_TOOLS/sogod ]; then
sogod="$GNUSTEP_LOCAL_ADMIN_TOOLS/sogod"
elif [ -x $GNUSTEP_SYSTEM_ADMIN_TOOLS/sogod ]; then
sogod="$GNUSTEP_SYSTEM_ADMIN_TOOLS/sogod"
else
echo "Can't find sogod"
exit 1
fi
echo $sogod
if [ -f $GNUSTEP_MAKEFILES/GNUstep.sh ]; then
. $GNUSTEP_MAKEFILES/GNUstep.sh
else
echo "Can't find GNUstep.sh"
exit 1
fi
# echo "SOGOD: $sogod -WOPort $listen" 2>&1
exec $sogod -WOLogFile $LOGFILE -WOPidFile $PIDFILE