Hi,

I've finally reproduced the problem reported on a installation without SystemD (Devuan). The issue occurs in the .postinst file during the steps executed by invoke-rc.d start call inside dh_installinit. On a system with SystemD, the unit file creates the dir (/var/lib/tuptime) automatically using the StateDirectory= option when the service starts. However, on SysVinit this directory is never created.

I've updated the init.d script file to replicate the behaviour of StateDirectoy=, it now checks for the path and creates it properly if it doesn't exists.

In case of suffer this issue, execute the following lines after the failed installation and then try intalling it again, it should complete wihtout any problem:

# mkdir -p /var/lib/tuptime
# chown _tuptime:_tuptime /var/lib/tuptime
# chmod 0755 /var/lib/tuptime

The fix is already available in the GitHub repo and will land in Debian with the next update:
https://github.com/rfmoz/tuptime/blob/dev/src/init.d/debian/tuptime

Thanks,
Ricardo F.

Reply via email to