Correct way in a systemd-world to start pulseaudio with verbose messaging

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Post Reply
lmuserx4849
Level 5
Level 5
Posts: 671
Joined: Wed Dec 17, 2014 2:55 am

Correct way in a systemd-world to start pulseaudio with verbose messaging

Post by lmuserx4849 » Tue Feb 27, 2018 2:30 am

What is the correct way in a systemd-world to start pulseaudio with verbose messaging for debugging?

This is the way I'd do debugging in the past:

Code: Select all

On one console: tail -f /var/log/syslog
On another console: pulseaudio --start -vvvv
But I spotted this in a debian thread:

Code: Select all

systemctl --user --runtime edit pulseaudio.service

# Enter the following content in the editor:
[Service]
ExecStart=/usr/bin/pulseaudio --daemonize=no -vvvv

systemctl --user restart pulseaudio
journalctl --user-unit=pulseaudio.service --since=today 

User avatar
kc1di
Level 12
Level 12
Posts: 4051
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Correct way in a systemd-world to start pulseaudio with verbose messaging

Post by kc1di » Thu Mar 01, 2018 5:59 am

Hello lmuserx4849,
I'm not exactly sure what your asking but if it's debugging then this may be of help https://manpages.debian.org/testing/pul ... .1.en.html
scroll down to the section on --log-level it discribes how to get verbose logging and also where you can log it to.
good luck.
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

lmuserx4849
Level 5
Level 5
Posts: 671
Joined: Wed Dec 17, 2014 2:55 am

Re: Correct way in a systemd-world to start pulseaudio with verbose messaging

Post by lmuserx4849 » Thu Mar 01, 2018 6:38 pm

kc1di wrote:
Thu Mar 01, 2018 5:59 am
Hello lmuserx4849,
I'm not exactly sure what your asking but if it's debugging then this may be of help https://manpages.debian.org/testing/pul ... .1.en.html
scroll down to the section on --log-level it discribes how to get verbose logging and also where you can log it to.
good luck.
-loglevel=4 and -vvvv are suppose to be the same.

But what I was really asking, is there a new way in the systemd-world to start, stop and change options for a daemon. I needed to get more info from PulseAudio, and I used what I knew from sysvint and rsyslogd days. But then as I searched and read more ---- should I have been using systemctl and journalctl to start/stop/change and tail the log. Is this the best practices of the day. I assume this would not only apply to PulseAudio but all daemons.

Post Reply

Return to “Sound, Multimedia, & Codecs”