Migrated FastNetMon to use simple daemon type instead of old forking one

This commit is contained in:
Pavel Odintsov 2024-01-08 11:08:14 +00:00
parent 9ee31530e4
commit bffdec7109

View File

@ -4,14 +4,11 @@ Documentation=man:fastnetmon(8)
After=network.target remote-fs.target After=network.target remote-fs.target
[Service] [Service]
Type=forking Type=simple
ExecStart=@CMAKE_INSTALL_SBINDIR@/fastnetmon --daemonize ExecStart=@CMAKE_INSTALL_SBINDIR@/fastnetmon
PIDFile=/run/fastnetmon.pid
Restart=on-failure Restart=on-failure
RestartSec=3 RestartSec=3
LimitNOFILE=65535 LimitNOFILE=65535
#ExecReload=/bin/kill -s HUP $MAINPID
#ExecStop=/bin/kill -s QUIT $MAINPID
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target