Darkstat exits on sleep

Bug #1956589 reported by kenn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
darkstat (Ubuntu)
New
Undecided
Unassigned

Bug Description

I am on Ubuntu 20.04 Mate desktop. I installed darkstat from official repo, its version `darkstat 3.0.719`
I enabled it as a systemd service. It starts well on boot. But I noticed that service exits when I put my laptop to sleep.
I tested if it exits on network down but it keeps running while computer is online.
I also noticed another weird thing, it starts two process

pstree -a -s -l -p -u | grep darkstat
  |-darkstat,42689,nobody -i wlp6s0 -p 666 --chroot /var/lib/darkstat --pidfile /var/run/darkstat.pid -b 127.0.0.1 -l 192.168.0.0/255.255.255.0 --daylog darkstat.log --import darkstat.db --export darkstat.db -f
  | `-darkstat,42690 -i wlp6s0 -p 666 --chroot /var/lib/darkstat --pidfile /var/run/darkstat.pid -b 127.0.0.1 -l 192.168.0.0/255.255.255.0 --daylog darkstat.log --import darkstat.db --export darkstat.db -f

Revision history for this message
Emil Mikulic (darkmoon) wrote :

The child process is expected, it's used for DNS resolution (so as not to block the main process, which is a select() loop)

Please run with --syslog and see if there's a smoking gun in the logs when darkstat stops.

Revision history for this message
kenn (whatnext) wrote :

@darkmoon Thank you for responding. There is nothing fancy in syslog:
2022-03-19 10:17:58 +0000|1647685078|486|377|6|6
# logging stopped at 2022-03-19 10:17:58 +0000 (1647685078)
# logging started at 2022-03-19 10:17:59 +0000 (1647685079)
2022-03-19 10:21:07 +0000|1647685267|294038|96563|394|419
# logging stopped at 2022-03-19 10:17:07 +0000 (1647685267)

I put it to suspend after 10:17 but it failed to restart it after resuming at 10:17

Revision history for this message
Emil Mikulic (darkmoon) wrote :

That's --daylog (which records bytes in/out per day), what you want is --syslog (which will hopefully record some kind of error, and will end up in /var/log/messages or similar)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.