Subversion Repositories ALCASAR

Rev

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

Rev 3112 Rev 3123
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 3112 2023-01-13 17:13:15Z rexy $
2
#  $Id: alcasar.sh 3123 2023-04-04 22:25:41Z rexy $
3
 
3
 
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
6
# contact : info@alcasar.net
6
# contact : info@alcasar.net
7
 
7
 
Line 1995... Line 1995...
1995
# Create the systemd unit
1995
# Create the systemd unit
1996
	cat << EOF > /etc/systemd/system/gammu-smsd.service
1996
	cat << EOF > /etc/systemd/system/gammu-smsd.service
1997
[Unit]
1997
[Unit]
1998
Description=SMS daemon for Gammu
1998
Description=SMS daemon for Gammu
1999
Documentation=man:gammu-smsd(1)
1999
Documentation=man:gammu-smsd(1)
2000
After=network.target mysql.service
2000
After=network.target mysqld.service
2001
 
2001
 
2002
[Service]
2002
[Service]
2003
Type=forking
2003
Type=forking
2004
ExecStart=/usr/bin/gammu-smsd --config /etc/gammu_smsd_conf --user=gammu_smsd --group=gammu_smsd --pid=/run/gammu-smsd.pid --daemon
2004
ExecStart=/usr/bin/gammu-smsd --config /etc/gammu_smsd_conf --user=gammu_smsd --group=gammu_smsd --pid=/run/gammu-smsd.pid --daemon
2005
ExecReload=/bin/kill -HUP $MAINPID
2005
ExecReload=/bin/kill -HUP $MAINPID