summaryrefslogtreecommitdiff
path: root/net-mail/sympa/files/sympa-5.4.initd
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@slonko.net>2020-03-09 09:36:09 +0100
committerMarcin Deranek <marcin.deranek@slonko.net>2020-03-09 09:36:09 +0100
commitaf62905d06499302d92f165768168d76f9138f64 (patch)
tree6536ac22d981254ecbf97b20e72372ef78c2320a /net-mail/sympa/files/sympa-5.4.initd
parented1bb51fde83231756a5eaea9bffd6599be2ee90 (diff)
downloadportage-af62905d06499302d92f165768168d76f9138f64.tar.gz
portage-af62905d06499302d92f165768168d76f9138f64.tar.bz2
portage-af62905d06499302d92f165768168d76f9138f64.zip
Remove obsolete/outdated version
Diffstat (limited to 'net-mail/sympa/files/sympa-5.4.initd')
-rw-r--r--net-mail/sympa/files/sympa-5.4.initd49
1 files changed, 0 insertions, 49 deletions
diff --git a/net-mail/sympa/files/sympa-5.4.initd b/net-mail/sympa/files/sympa-5.4.initd
deleted file mode 100644
index 86ada21..0000000
--- a/net-mail/sympa/files/sympa-5.4.initd
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/sbin/openrc-run
-
-opts="depend start stop"
-sympaconf="/etc/sympa/sympa.conf"
-wwsympaconf="/etc/sympa/wwsympa.conf"
-sympadir="/usr"
-depend() {
- use logger mysql postgres ldap
- before apache apache2 lighttpd
-}
-
-sympa_start() {
- ebegin "Starting Sympa module $1.pl: "
- local MY_PID="/var/run/sympa/$1.pid"
- start-stop-daemon --start --quiet --pidfile ${MY_PID} --exec $sympadir/sbin/$1.pl
- eend $?
-}
-
-sympa_stop() {
- ebegin "Stopping Sympa module $1.pl: "
- local MY_PID="/var/run/sympa/$1.pid"
- start-stop-daemon --stop --quiet --pidfile ${MY_PID}
- eend $?
-}
-
-start() {
- #Check config files
- if [ ! -f $sympaconf ]; then
- eerror "Missing Sympa config!"
- return 1
- fi
- if [ ! -f $wwsympaconf ]; then
- eerror "Missing WWSympa config!"
- return 1
- fi
- echo "Starting Sympa subsystems: "
- sympa_start sympa
- sympa_start bounced
- sympa_start archived
- sympa_start task_manager
-}
-
-stop(){
- echo "Stopping Sympa subsystems: "
- sympa_stop bounced
- sympa_stop archived
- sympa_stop sympa
- sympa_stop task_manager
-}