Add systemd service :(

This commit is contained in:
Pavel Odintsov 2015-03-24 23:16:44 +03:00
parent 419fec19d7
commit a2db2fca7e
2 changed files with 26 additions and 0 deletions

View File

@ -27,10 +27,21 @@ And install pfring kernel module and libs:
yum install -y pfring
```
Install log4cpp from RPM on CentOS 7 (this package will be in EPEL 7 soon):
```bash
yum install -y https://github.com/FastVPSEestiOu/fastnetmon/raw/master/packages/CentOS7/log4cpp-1.1.1-1.el7.x86_64.rpm
yum install -y https://github.com/FastVPSEestiOu/fastnetmon/raw/master/packages/CentOS7/log4cpp-devel-1.1.1-1.el7.x86_64.rpm
```
Install FastNetMon on CentOS 6:
```bash
yum install -y https://raw.githubusercontent.com/FastVPSEestiOu/fastnetmon/master/packages/CentOS6/fastnetmon-1.1.1-1.x86_64.rpm
```
Install FastNetMon on CentOS 7:
```bash
yum install -y https://raw.githubusercontent.com/FastVPSEestiOu/fastnetmon/master/packages/CentOS7/
```
If you want build rpm package manually please use script [build_rpm.sh](https://raw.githubusercontent.com/FastVPSEestiOu/fastnetmon/master/src/build_rpm.sh). Please build on same Linux distro version as target platform for best results.

15
src/fastnetmon.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=FastNetMon - DoS/DDoS analyzer with sflow/netflow/mirror support
After=syslog.target network.target remote-fs.target
[Service]
Type=simple
ExecStart=/usr/sbin/fastnetmon
#Type=forking
#PIDFile=/run/nginx.pid
#ExecReload=/bin/kill -s HUP $MAINPID
#ExecStop=/bin/kill -s QUIT $MAINPID
[Install]
WantedBy=multi-user.target