Added systemd reload command to apply changes

This commit is contained in:
Pavel Odintsov 2019-07-11 20:04:01 +01:00
parent 4790c728eb
commit 30ced722c4

View File

@ -250,6 +250,9 @@ sub main {
system("sed -i 's/sflow = on/sflow = off/' /etc/fastnetmon.conf");
system("sed -i 's/netflow = on/netflow = off/' /etc/fastnetmon.conf");
# Apply changes
system("systemctl restart fastnetmon");
print "FastNetMon was installed and started correctly\n";
print "You can find configuration file at /etc/fastnetmon.conf\n";
print "You can restart FastNetMon this way: systemctl restart fastnetmon\n";