Skip to Content.
Sympa Menu

en - Re: [sympa-users] Sympa and SuSE

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Saman Ghannadzadeh <address@concealed>
  • To: Olivier Salaun - CRU <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Sympa and SuSE
  • Date: Fri, 18 Jun 2004 09:20:47 +0100

Hi,

Ok. SO the script would now look like:

##########################################
#! /bin/sh

PATH=/bin:/usr/bin:/sbin:/usr/sbin

DAEMON=/home/sympa/bin/sympa.pl
PIDFILE=/home/sympa/sympa.pid

ARCHIVED_DAEMON=/home/sympa/bin/archived.pl
ARCHIVED_PIDFILE=/home/sympa/archived.pid

BOUNCED_DAEMON=/home/sympa/bin/bounced.pl
BOUNCED_PIDFILE=/home/sympa/bounced.pid

TASK_MANAGER_DAEMON=/home/sympa/bin/task_manager.pl
TASK_MANAGER_PIDFILE=/home/sympa/task_manager.pid

OWNER="sympa:sympa"

test -f $DAEMON || exit 0
test -f $ARCHIVED_DAEMON || exit 0
test -f $BOUNCED_DAEMON || exit 0
test -f $TASK_MANAGER_DAEMON || exit 0

case "$1" in
start)
echo -n "Starting mailing list manager:"
echo -n " sympa"
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--chuid $OWNER --exec $DAEMON
start-stop-daemon --start --quiet --pidfile $ARCHIVED_PIDFILE \
--chuid $OWNER --exec $ARCHIVED_DAEMON
start-stop-daemon --start --quiet --pidfile $TASK_MANAGER_PIDFILE \
--chuid $OWNER --exec $TASK_MANAGER_DAEMON
start-stop-daemon --start --quiet --pidfile $BOUNCED_PIDFILE \
--chuid $OWNER --exec $BOUNCED_DAEMON


echo "."
;;
stop)
echo -n "Stopping mailing list manager:"
echo -n " sympa"

start-stop-daemon --stop --quiet --pidfile $BOUNCED_PIDFILE
start-stop-daemon --stop --quiet --pidfile $TASK_MANAGER_PIDFILE
start-stop-daemon --stop --quiet --pidfile $ARCHIVED_PIDFILE
start-stop-daemon --stop --quiet --pidfile $PIDFILE
echo "."
;;
restart|force-reload|reload)
$0 stop
sleep 3
$0 start
;;
*)
echo "Usage: /etc/init.d/sympa {start|stop|restart|reload|force-reload}"
exit 1
;;
esac

exit 0
##########################################

Olivier Salaun - CRU wrote:
> Hi Saman,
>
> Comment on the script : the use_db() test is not required since recent
> versions of Sympa require a database.
> Maybe we should try merging this script with the one that is distributed
> with Sympa...
>



Archive powered by MHonArc 2.6.19+.

Top of Page