1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-18 18:07:22 +01:00

Fully working docker!

This commit is contained in:
Morteza Milani
2015-01-24 13:59:16 +03:30
committed by Joshua Tauberer
parent dd5de8acf3
commit a5ffd6d25e
21 changed files with 207 additions and 60 deletions

11
services/bind9.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
EXEC=bind9
PROCESS=named
/etc/init.d/$EXEC start
while [ `ps -C $PROCESS -o pid= | wc -l` -gt 0 ]; do
sleep 30
done

3
services/dovecot.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
/usr/sbin/dovecot -F -c /etc/dovecot/dovecot.conf &> /var/log/dovecot.log

9
services/fail2ban.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
PROCESS=fail2ban
/etc/init.d/$PROCESS start
while [ `ps aux | grep fail2ban | grep -v grep | wc -l` -gt 0 ]; do
sleep 30
done

12
services/mailinabox.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
EXEC=mailinabox
PROCESS=mailinabox-daemon
if [ `ps aux | grep $PROCESS | grep -v grep | wc -l` -eq 0 ]; then
/etc/init.d/$EXEC start
fi
while [ `ps aux | grep $PROCESS | grep -v grep | wc -l` -gt 0 ]; do
sleep 30
done

10
services/memcached.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
PROCESS=memcached
/etc/init.d/$PROCESS start
while [ `ps -C $PROCESS -o pid= | wc -l` -gt 0 ]; do
sleep 60
done

10
services/nginx.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
PROCESS=nginx
/etc/init.d/$PROCESS start
while [ `ps -C $PROCESS -o pid= | wc -l` -gt 0 ]; do
sleep 30
done

10
services/nsd.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
PROCESS=nsd
/etc/init.d/$PROCESS start
while [ `ps -C $PROCESS -o pid= | wc -l` -gt 0 ]; do
sleep 30
done

10
services/opendkim.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
PROCESS=opendkim
/etc/init.d/$PROCESS start
while [ `ps -C $PROCESS -o pid= | wc -l` -gt 0 ]; do
sleep 30
done

10
services/php5-fpm.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
PROCESS=php5-fpm
/etc/init.d/$PROCESS start
while [ `ps -C $PROCESS -o pid= | wc -l` -gt 0 ]; do
sleep 30
done

10
services/postfix.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
PROCESS=postfix
/etc/init.d/$PROCESS start
while [ `ps aux | grep $PROCESS | grep -v grep | wc -l` -gt 0 ]; do
sleep 30
done

10
services/postgrey.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
PROCESS=postgrey
/etc/init.d/$PROCESS start
while [ `ps aux | grep $PROCESS | grep -v grep | wc -l` -gt 0 ]; do
sleep 30
done

3
services/rsyslogd.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
rsyslogd -n

10
services/spampd.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
PROCESS=spampd
/etc/init.d/$PROCESS start
while [ `ps -C $PROCESS -o pid= | wc -l` -gt 0 ]; do
sleep 30
done