mbolli / nfsen-ng

Responsive NetFlow visualizer built on top of nfdump tools.
Apache License 2.0
232 stars 44 forks source link

Missing Systemd launcher in doc #70

Closed dominiquefournier closed 9 months ago

dominiquefournier commented 2 years ago

In the README.md file, there is a missing part : the listen.php launcher !

It is the /etc/systemd/system/nfsen.service file :

[Unit]
Description=nfsen-ng daemon
Requires=network.target remote-fs.target apache2.service

[Service]
PIDFile=/var/www/html/nfsen-ng/backend/nfsen-ng.pid
WorkingDirectory=/var/www/html/nfsen-ng/backend/
ExecStart=/usr/bin/php /var/www/html/nfsen-ng/backend/listen.php
Restart=always
Type=simple
KillMode=process
User=www-data
Group=www-data
StandardOutput=null
StandardError=syslog
ProtectSystem=full
ProtectHome=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target

Of course it should be adapted with the pathes.

After, the systemd must be reloaded : systemctl daemon-reload