Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: mjeanson@efficios.com (Michael Jeanson)
Subject: [lttng-dev] lttng-sessiond as a CentOS 7 service
Date: Wed, 12 Oct 2016 14:31:52 -0400	[thread overview]
Message-ID: <8b42d686-3ddd-89d8-888b-da4ae1edc27d@efficios.com> (raw)
In-Reply-To: <48CF5AC71E61DB46B70D0F388054EFFDB7DF18EF@VAL-E-01.valcartier.drdc-rddc.gc.ca>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2695 bytes --]

On 2016-10-12 14:21, Thibault, Daniel wrote:
> Using:
> lttng-modules-stable-2.8-2.8.2-e840206
> userspace-rcu-stable-0.9-6051170
> lttng-ust-stable-2.8-cf18865
> lttng-tools-stable-2.8-2.8.2-48262f1
> on:
> Red Hat Enterprise Linux Server release 7.2 (Maipo) (RHEL 7.2 64-bits)
> Kernel 3.10.0-327.el7.x86_64
> 
> I'm having trouble with my installation of lttng-sessiond as a service.  If I run lttng-sessiond using either -b, -d, or just -vvv, it works fine (I can interrogate 'lttng list -u' from a tracing user shell and detect the process using 'ps -e | grep sessiond').
> 
> But when I launch the service, I end up with a "successfully dead" daemon:
> 
> # systemctl start lttng-sessiond
> # systemctl status lttng-sessiond
> * lttng-sessiond.service - LTTng central tracing registry session daemon
>    Loaded: loaded (/etc/systemd/system/lttng-sessiond.service; enabled; vendor preset: enabled)
>    Active: inactive (dead) since ...
>   Process: 5865 ExecStart=/usr/local/bin/lttng-sessiond -d (code=exited, status=0/SUCCESS)
>  Main PID: 5865 (code=exited, status=0/SUCCESS)
> 
> There's nothing in dmesg.
> 
> The service is set up like so:
> 
> $ sudo ln -s /etc/systemd/system/lttng-sessiond.service /etc/systemd/system/multi-user.target.wants/lttng-sessiond.service
> $ cat > ~/lttng-sessiond.service << END
> [Unit]
> Description=LTTng central tracing registry session daemon
> 
> [Service]
> Type=simple
> User=root
> ExecStart=/usr/local/bin/lttng-sessiond -d

You should remove the "-d", systemd expects the daemon to stay in the
foreground so it can monitor it.

> Restart=on-abort
> 
> [Install]
> WantedBy=multi-user.target
> END
> $ sudo mv ~/lttng-sessiond.service /etc/systemd/system/lttng-sessiond.service
> 
> What am I doing wrong?
> 
> Daniel U. Thibault, M.Sc.²
> 
> Informaticien scientifique, CME-PSC, Centre de recherches de Valcartier
> Recherche et développement pour la défense Canada / Gouvernement du Canada
> daniel.thibault at drdc-rddc.gc.ca / Tél: 418-844-4000x4245 Téléc: 418-844-4538
> daniel.thibault at forces.gc.ca / Tél: 418-844-4000x4245 Téléc: 418-844-4538
> 
> Computer Scientist, MCCS-SPC, Valcartier Research Centre 
> Defence Research and Development Canada / Government of Canada
> daniel.thibault at drdc-rddc.gc.ca / Tel: 418-844-4000x4245 Fax: 418-844-4538
> daniel.thibault at forces.gc.ca / Tel: 418-844-4000x4245 Fax: 418-844-4538
> 
> DRDC is an agency of the Department of National Defence / RDDC est une agence du ministère de la Défense nationale
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 



      reply	other threads:[~2016-10-12 18:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-12 18:21 Thibault, Daniel
2016-10-12 18:31 ` Michael Jeanson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8b42d686-3ddd-89d8-888b-da4ae1edc27d@efficios.com \
    --to=mjeanson@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox