abusenius / insaned

Simple daemon for polling button presses on SANE scanners
GNU General Public License v2.0
43 stars 13 forks source link

Restart insaned if it fails #5

Closed coaxial closed 7 years ago

coaxial commented 7 years ago

cf https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=

coaxial commented 7 years ago

I had insaned crash today with insaned: browser.c:701: avahi_service_browser_free: Assertion `*_head == _item' failed.

I'm not sure why that is, but it seems to be a libsane error according to my limited googling. With the restart policy set to on-failure, the service would restart automatically in such an event, without requiring any maintenance from the user.

abusenius commented 7 years ago

Never seen a crash before, what were doing when it happened? I don't directly use avahi, but maybe I use libsane in a wrong manner...

The change looks good, thanks.

coaxial commented 7 years ago

I don't know what happened. It was working, then I went to sleep, and when I woke up to work on that system again it was crashed. Sorry I don't have any more info.