Subversion Repositories ALCASAR

Rev

Rev 1372 | Rev 1374 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1372 Rev 1373
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1372 2014-06-04 09:29:45Z richard $ 
2
#  $Id: alcasar.sh 1373 2014-06-04 12:38:50Z richard $ 
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 900... Line 900...
900
PIDFile=/var/run/chilli.pid
900
PIDFile=/var/run/chilli.pid
901
 
901
 
902
[Install]
902
[Install]
903
WantedBy=multi-user.target
903
WantedBy=multi-user.target
904
EOF
904
EOF
905
chmod a+x /lib/systemd/system/chilli.service
-
 
906
# init file creation
905
# init file creation
907
	[ -e /etc/init.d/chilli.default ] || mv /etc/init.d/chilli /etc/init.d/chilli.default
906
	[ -e /etc/init.d/chilli.default ] || mv /etc/init.d/chilli /etc/init.d/chilli.default
908
	cat <<EOF > /usr/libexec/chilli
907
	cat <<EOF > /usr/libexec/chilli
909
#!/bin/sh
908
#!/bin/sh
910
#
909
#
Line 984... Line 983...
984
        echo "Usage: \$0 {start|stop|restart|reload|status}"
983
        echo "Usage: \$0 {start|stop|restart|reload|status}"
985
        exit 1
984
        exit 1
986
esac
985
esac
987
echo
986
echo
988
EOF
987
EOF
989
 
-
 
-
 
988
chmod a+x /usr/libexec/chilli
990
# conf file creation
989
# conf file creation
991
	[ -e /etc/chilli.conf.default ] || cp /etc/chilli.conf /etc/chilli.conf.default
990
	[ -e /etc/chilli.conf.default ] || cp /etc/chilli.conf /etc/chilli.conf.default
992
	cat <<EOF > /etc/chilli.conf
991
	cat <<EOF > /etc/chilli.conf
993
# coova config for ALCASAR
992
# coova config for ALCASAR
994
cmdsocket	/var/run/chilli.sock
993
cmdsocket	/var/run/chilli.sock