Subversion Repositories ALCASAR

Rev

Rev 2387 | Rev 2395 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 2387 Rev 2394
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2387 2017-08-22 16:43:03Z tom.houdayer $ 
2
#  $Id: alcasar.sh 2394 2017-08-27 13:28:59Z tom.houdayer $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1184... Line 1184...
1184
    start)
1184
	start)
1185
	if [ -f \$pidfile ] ; then 
1185
		if [ -f \$pidfile ] ; then 
1186
		gprintf "chilli is already running"
1186
			gprintf "chilli is already running"
1187
	else
1187
		else
1188
        	gprintf "Starting \$prog: "
1188
			gprintf "Starting \$prog: "
1189
		[ -e \$current_users_file ] && echo '' > \$current_users_file
1189
			echo '' > \$current_users_file && chown apache:apache \$current_users_file
1190
		rm -f /var/run/chilli* # cleaning
1190
			rm -f /var/run/chilli* # cleaning
1191
        	/usr/sbin/modprobe tun >/dev/null 2>&1
1191
			/usr/sbin/modprobe tun >/dev/null 2>&1
1192
        	echo 1 > /proc/sys/net/ipv4/ip_forward
1192
			echo 1 > /proc/sys/net/ipv4/ip_forward
1193
		[ -e /dev/net/tun ] || {
1193
			[ -e /dev/net/tun ] || {
1194
	    	(cd /dev; 
1194
				(cd /dev;