Accidentally deleted /tmp/systemd-private-015eb2a30-apache2.service-9h6i

I accidentally deleted systemd-private-015eb2e9f67b4eef862c68e99fe0ba30-apache2.service-9h6i08 from my /tmp folder:

sudo rm -R /tmp/systemd-private-015eb2e9f67b4eef862c68e99fe0ba30-apache2.service-9h6i08

and didn't mean for it not to disappear permanently. I was sure it would get displayed back again. This makes my code break since it's not finding the secured folder to write files to it.

How do I return the file back again?

I tried creating the directory again - with only root permissions and ownership - but this doesn't work.


Restarting Apache should recreate it (with a slightly different name).

Assuming Debian/Ubuntu:

sudo systemctl restart apache2