mirror of
https://github.com/pavel-odintsov/fastnetmon.git
synced 2024-09-21 10:27:13 +00:00
Migrated FastNetMon to use simple daemon type instead of old forking one
This commit is contained in:
parent
9ee31530e4
commit
bffdec7109
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user