mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-22 02:38:59 +00:00
24 lines
821 B
Desktop File
24 lines
821 B
Desktop File
[Unit]
|
|
Description=ntopng high-speed web-based traffic monitoring and analysis tool
|
|
After=network.target syslog.target redis.service pf_ring.service cluster.service mysql.service
|
|
Requires=
|
|
Wants=pf_ring.service cluster.service
|
|
PartOf=pf_ring.service cluster.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
# Config restore only available for non instantiated-services
|
|
# ExecStartPre=/bin/sh -c '/usr/bin/ntopng-utils-manage-config -a check-restore && /usr/bin/ntopng-utils-manage-config -a restore || true'
|
|
ExecStartPre=/bin/sh -c '/bin/sed "/^[ ]*-e.*$\\|^[ ]*-G.*\\|^[ ]*--daemon.*\\|^[ ]*--pid.*/s/^/#/" /etc/ntopng/ntopng-%i.conf > /run/ntopng-%i.conf'
|
|
|
|
ExecStart=/usr/local/bin/ntopng /run/ntopng-%i.conf
|
|
|
|
ExecStopPost=-/bin/rm -rf /run/ntopng-%i.conf
|
|
|
|
Restart=on-abnormal
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Alias=
|