Advertisement
bastafidli

/etc/init/pulseaudio.conf - 3 way multiseat - Pulseaudio

Feb 10th, 2013
434
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # System PulseAudio service
  2.  
  3. description "System PulseAudio sound server"
  4. author "Pali Rohár <pali.rohar@gmail.com>"
  5.  
  6. # uncomment the 'start on' to start pulseaudio in system mode
  7. # (enables the pulseaudio init script - requires that users be in the
  8. # pulse-access group)
  9. # System mode is not the recommended way to run PulseAudio as it has some
  10. # limitations (such as no shared memory access) and could potentially allow
  11. # users to disconnect or redirect each others' audio streams. The
  12. # recommended way to run PulseAudio is as a per-session daemon. For GNOME/KDE/
  13. # Xfce sessions in Ubuntu Lucid/10.04, /etc/xdg/autostart/pulseaudio.desktop
  14. # handles this function of automatically starting PulseAudio on login, and for
  15. # it to work correctly your user must *not* have "autospawn = no" set in
  16. # ~/.pulse/client.conf (or in /etc/pulse/client.conf). By default, autospawn
  17. # is enabled. For other sessions, you can simply start PulseAudio with
  18. # "pulseaudio --daemonize".
  19.  
  20. # Multiseat:
  21. start on runlevel [2345]
  22. #start on runlevel [2345]
  23. stop on runlevel [016]
  24.  
  25. expect daemon
  26. respawn
  27.  
  28. # Prevent users from dynamically loading modules into the PulseAudio sound
  29. # server. Dynamic module loading enhances the flexibility of the PulseAudio
  30. # system, but may pose a security risk.
  31. # 0 = no, 1 = yes
  32. env DISALLOW_MODULE_LOADING=1
  33.  
  34. # extra arguments to pass to the daemon
  35. env PULSEAUDIO_ARGS=
  36.  
  37. pre-start exec install -d -m755 -o pulse -g pulse /run/pulse
  38.  
  39. exec /usr/bin/pulseaudio --system --daemonize --high-priority --log-target=syslog --disallow-exit --disallow-module-loading=$DISALLOW_MODULE_LOADING $PULSEAUDIO_ARGS
  40.  
  41. post-start script
  42. if [ -e /var/run/pulse/.esd_auth ]; then
  43. chown pulse:pulse-access /var/run/pulse/.esd_auth
  44. chmod 640 /var/run/pulse/.esd_auth
  45. fi
  46. if [ -e /var/run/pulse/.pulse-cookie ]; then
  47. chown pulse:pulse-access /var/run/pulse/.pulse-cookie
  48. chmod 640 /var/run/pulse/.pulse-cookie
  49. fi
  50. end script
Advertisement
RAW Paste Data Copied
Advertisement