/lib/systemd/system/gitlabhq-10.7-sidekiq.service:24: RuntimeDirectory= path is not valid, ignoring assignment: /opt/gitlabhq-10.7/tmp
Calling systemctl status gitlabhq-10.7-gitaly.service
writes the above error to the journal.
man systemd.exec
states:
RuntimeDirectory=, ...
These options take a whitespace-separated list of directory names. The specified directory
names must be relative, and may not include "." or "..". If set, one or more directories by
the specified names will be created (including their parents) below /run ...
So RuntimeDirectory
is not the right directive for creating a needed directory outside of /run
if it does not exist.
Anyway, as gitlabhq-10.7-tmpfiles.conf
assures that /var/tmp/gitlabhq-10.7/
exists and the ebuild creates the symlink /opt/gitlabhq-10.7/tmp -> /var/tmp/gitlabhq-10.7/
on installation, there is no need to create /opt/gitlabhq-10.7/tmp
in the service file. So I removed the line
RuntimeDirectory=/opt/gitlabhq-10.7/tmp
and added a line
ConditionPathExists=/opt/gitlabhq-10.7/tmp
to the [Unit]
section.