Package: ntopng
Version: 3.8+dfsg1-2.1

There is a system boot race between ntopng and redis-server because
ntopng doesn't have the dependency in the systemd config (it is
present in init.d but not systemd)


root@ganges:~# systemctl status ntopng
...
Jan 23 19:25:02 ganges ntopng[7891]: 23/Jan/2020 19:25:02 [Redis.cpp:111] 
ERROR: ntopng requires redis server to be up and running
Jan 23 19:25:02 ganges ntopng[7891]: 23/Jan/2020 19:25:02 [Redis.cpp:112] 
ERROR: Please start it and try again or use -r
Jan 23 19:25:02 ganges ntopng[7891]: 23/Jan/2020 19:25:02 [Redis.cpp:113] 
ERROR: to specify a redis server other than the default

root@ganges:~# systemctl status redis-server
...
Jan 23 19:25:03 ganges systemd[1]: Started Advanced key-value store.


Note ntopng was started prior to redis-server on server boot.


root@ganges:~# grep redis /etc/init.d/ntopng 
# Required-Start:    $remote_fs $syslog redis-server
# Required-Stop:     $remote_fs $syslog redis-server
root@ganges:~# grep redis 
/etc/systemd/system/multi-user.target.wants/ntopng.service
root@ganges:~# 

An 'After=redis-server.service' would seem approprate in ntopng.service



-- 
Dave

Reply via email to