The service uacctd.service cannot restart correctly and is killed by timeout.
Then start and doesn't have the correct permission to the pid
To reproduce:
set system flow-accounting interface 'eth3' set system flow-accounting netflow engine-id '53' set system flow-accounting netflow server 192.0.2.11 port '2055' set system flow-accounting netflow version '10' commit set system flow-accounting disable-imt commit
PID rights
[email protected]:~$ ls -la /run/pmacct/uacctd.pid -rw------- 1 root root 5 May 21 10:53 /run/pmacct/uacctd.pid [email protected]:~$
Logs
May 21 11:27:10 r14 systemd[1]: Stopping uacctd.service - ulog accounting daemon... May 21 11:28:40 r14 systemd[1]: uacctd.service: State 'stop-sigterm' timed out. Killing. May 21 11:28:40 r14 systemd[1]: uacctd.service: Killing process 7602 (uacctd) with signal SIGKILL. May 21 11:28:40 r14 systemd[1]: uacctd.service: Main process exited, code=killed, status=9/KILL May 21 11:28:40 r14 systemd[1]: uacctd.service: Failed with result 'timeout'. May 21 11:28:40 r14 systemd[1]: Stopped uacctd.service - ulog accounting daemon. May 21 11:28:40 r14 systemd[1]: Starting uacctd.service - ulog accounting daemon... May 21 11:28:40 r14 systemd[1]: uacctd.service: Can't open PID file /run/pmacct/uacctd.pid (yet?) after start: Operation not permitted May 21 11:28:40 r14 systemd[1]: Started uacctd.service - ulog accounting daemon.