To 虞申鹏
As you already know, most of system & user daemons are launched by
systemd and
each of their service files are located in /usr/lib/systemd/system for
system session
and /usr/lib/systemd/user for user session.
pulseaudio.service unit file are in /usr/lib/systemd/system and it is
launched at multi-user.target in system session.
You can check the running status of each Unit by using systemctl command
as below.
sh-4.3# systemctl status pulseaudio.service
● pulseaudio.service - pulseaudio service
Loaded: loaded (/usr/lib/systemd/system/pulseaudio.service;
disabled; vendor preset: enabled)
Active: active (running) since Fri 1999-12-31 17:00:09 PST; 13min ago
Process: 273 ExecStart=/usr/bin/pulseaudio (code=exited,
status=0/SUCCESS)
Main PID: 284 (pulseaudio)
Memory: 4.0M (limit: 50.0M)
CGroup: /system.slice/pulseaudio.service
└─284 /usr/bin/pulseaudio
Although pulseaudio.service is in system session, pulseaudio is actually
running as _pulse_ user privilege in Tizen 3.0. Well, systemd can change
the privilege when launching by using 'User' or 'Group' directives.
However, I can't find those directives in pulseaudio.service file. Maybe
pulseaudio itself change its privilege by calling setuid.
BRs
Sangjung
On 07/23/2015 06:56 PM, Michael Johnson wrote:
*
MICHAEL JOHNSON*
Embedded Software Engineer*
*Tel. +441962868866 | Twitter <https://twitter.com/symphony_teleca>
Sunley House, 46 Jewry Street, Winchester, Hampshire, SO23 8RY
www.symphonyteleca.com
<http://www.symphonyteleca.com/company/newsroom/video-library/>
Teleca Limited, a company registered in England & Wales, registration
number 2773878, registered office at Sunley House, 46 Jewry Street,
Winchester, Hampshire SO23 8RY. VAT registration number GB 674 6583 90
/Please consider the environment before you print.
Notice to recipient: This e-mail (including any attachments) is meant
for the intended recipient only, may contain confidential and
proprietary information, and is protected by law. If you received this
e-mail in error, please immediately notify the sender of the error by
return e-mail, delete this communication and any attachments, and
shred any printouts. Unauthorized review, use, dissemination,
distribution, copying or taking of any action based on this
communication is strictly prohibited./
*From:*Michael Johnson
*Sent:* 23 July 2015 10:46
*To:* 虞申鹏
*Subject:* RE: [IVI] How to Running PulseAudio as system service
Hi,
Not sure you've had a reply. You can create a systemd service to
achive this goal. I did this once over a year ago, but I don't
remember the details. The systemd service will execute a script that
you create to start pulseaudio. You can also use pulseaudio -D from
the command line to run it as a daemon.
Hope that helps
------------------------------------------------------------------------
*From:*IVI [[email protected]] on behalf of 虞申鹏
[[email protected]]
*Sent:* 23 July 2015 2:16 AM
*To:* [email protected] <mailto:[email protected]>
*Subject:* [IVI] How to Running PulseAudio as system service
Hi everyone.
I want to running PulseAudio as system service.
Tizen version:3.0
Who can give me some tips?
Thanks.
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev