[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#904014: Runtime directory not created on boot, trafficserver fails to start



Package: trafficserver
Version: 7.1.2+ds-3 (amd64)

It's been a few years since this thread was started, but since it's the only one
I've been able to find that seems to cover this exact issue, I've decided to
include my resolution to this. It's perhaps better to use tmpfiles.d, but I like
being able to clean up the process on exit, so I've come up with a systemd
solution:

This can do in the /lib/systemd/system/trafficserver.service file, or in a
custom unit under /etc/systemd/system/trafficserver.service.d/my_overrides.conf.
The actual paths will depend on your system.

Additionally, this solution requires that you have the 'install' program
installed on your system. Again, the paths here will depend on your system.

Include this in [Service]:
> ExecStartPre=/usr/bin/install -m0775 -g trafficserver -d /run/trafficserver
> ExecStopPost=/bin/rm -r /run/trafficserver

I'm providing this as a sort-of resolution to this issue. You may have something
else that works for you, but I haven't seen this fix anywhere else short of
creating a boot-time tmpfile.d directory.

uname -a
> Linux web23.kbisp.com 4.15.0-184-generic #194-Ubuntu SMP Thu Jun 2 18:54:48
UTC > 2022 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a
> No LSB modules are available.
> Distributor ID:	Ubuntu
> Description:	Ubuntu 18.04.6 LTS
> Release:	18.04
> Codename:	bionic

I know this issue is filed under Debian, and I'm using Ubuntu, but hopefully
this helps anyone else looking to resolve this.

KINETIX

KARA O’DELL / LINUX ADMINISTRATOR
kodell@kbisp.com / kbisp.com / 318.787.0082
400 Murray Street / Alexandria, LA 71301



Reply to: