In my case the screen-cleanup
service was masked, on Debian "buster" 10.4:
$ systemctl is-enabled screen-cleanup.service
masked
And
$ file /lib/systemd/system/screen-cleanup.service
/lib/systemd/system/screen-cleanup.service: symbolic link to /dev/null
Which causes the following:
$ systemctl enable screen-cleanup.service
Synchronizing state of screen-cleanup.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable screen-cleanup
Failed to enable unit: Unit file /lib/systemd/system/screen-cleanup.service is masked.
The following did the trick to create the run-directory on every boot. Remove the symlink to /dev/null
manually (systemctl unmask
didn't work):
rm /lib/systemd/system/screen-cleanup.service
Then enable the service:
systemctl enable screen-cleanup.service
And start it:
systemctl start screen-cleanup.service