Thanks to both of you! > I'd always encourage > you to fix the daemon in question to make something like the above > unnecessary.
True. Since I'm only packaging the daemon, I can just guess its written as it is to make sure the daemon can remove the PID file independent of the platform its running on and how it was invoked. > But for unprivileged access to pidfiles the usual approach is to create > a dedicated subdirectory under /run¹, either using RuntimeDirectory= > or a full tmpfiles.d config, and tell the service to use > "/run/myservice/myservice.pid". It might be simpler than touch+chown, > and a bit cleaner. You're right. Since I have to solve the same problem for both SysV and systemd, its the better solution. Malte _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel