[Bug 213857] databases/influxdb: directory /var/run/influxdb not created at service start time (only at installation time)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 4 22:07:37 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213857

Palle Girgensohn <girgen at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |girgen at FreeBSD.org

--- Comment #4 from Palle Girgensohn <girgen at FreeBSD.org> ---
Since the daemon has its own directory under /var/run/influxdb, there is no
need to touch the pidfile. It is a trick to set ownership when it is diectly
under /var/run.

Some thing like this is cool. Ok to commit?

Index: files/influxd.in
===================================================================
--- files/influxd.in    (revision 427748)
+++ files/influxd.in    (working copy)
@@ -41,7 +41,7 @@

 influxd_precmd()
 {
-    install -o ${influxd_user} /dev/null ${influxd_pidfile}
+    install -d -o ${influxd_user}  %%INFLUXD_PIDDIR%%
 }

 run_rc_command "$1"

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list