Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Dec 2016 22:07:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 213857] databases/influxdb: directory /var/run/influxdb not created at service start time (only at installation time)
Message-ID:  <bug-213857-13-qJRbn69ycS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213857-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213857-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213857

Palle Girgensohn <girgen@FreeBSD.org> changed:

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

--- Comment #4 from Palle Girgensohn <girgen@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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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"

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213857-13-qJRbn69ycS>