Project

General

Profile

Actions

Bug #820

closed

Use of /var/run weird for saving sessions ?

Added by Mathieu Desnoyers almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
07/16/2014
Due date:
% Done:

0%

Estimated time:

Description

By definition, /var/run stores files describing system since boot:

http://www.pathname.com/fhs/2.2/fhs-5.13.html

So I don't see how storing the system session files there help us achieving boot time auto load ?

Storing those files under /root/.lttng might be more expected than /var/run (at least it is not cleared at each boot). Having the configuration files under /etc/lttng would be expected, but I cannot find any reference to this path in the manpage.

Actions #1

Updated by David Goulet almost 10 years ago

  • Status changed from New to Invalid

For a root session daemon, the session are saved by default in /root/.lttng/sessions.

The documentation is wrong in the man page. Will fix it.

Actions #2

Updated by Mathieu Desnoyers almost 10 years ago

  • Status changed from Invalid to In Progress

Your statement "For a root session daemon, the session are saved by default in /root/.lttng/sessions." don't appear to be right.

If I start a lttng-sessiond as root, and use it from my compudj user part of the tracing group, the session is saved under:

/home/compudj/.lttng/sessions

Actions #3

Updated by David Goulet almost 10 years ago

  • Status changed from In Progress to Confirmed

Right, the session is saved under the session UID home directory.

I should have said: "For a root user, the session is saved in /root..."

Actions #4

Updated by David Goulet almost 10 years ago

  • Status changed from Confirmed to Resolved
Actions

Also available in: Atom PDF