[opensuse] systemd: creation of tmpfiles, owned by net-wide user
Hi, I got a service, actually a Tomcat 5, that runs under a network-wide user/group id, i.e., one that's supplied by NIS (LDAP would be the same story). This service wants to store PID files somewhere. I want to use /run/tomcat5/ for that. This directory must be owned by the server's run user id. I can't create this directory via /etc/tmpfiles.d: systemd-tmpfiles-setup.service must not depend on ypbind.service, this would result in a dependency deadlock. Is there an "official" method to assert the existence of a directory in a systemd service unit definition, with appropriate create actions to be done when a service is started? I could use ExecStart and supply a script, to be executed with root rights; but I hope that the demands of using network-supplied resources is more widespread and thus predefined solutions exist. -- But, I haven't found them in man pages of systemd.unit and systemd.service. Cheers, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jschrod@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Anton Aylward
-
Joachim Schrod