gharris999 wrote:
> OK, this is *really* kicking my butt. I cannot figure out how to make a
> sysvinit started service respect values in /etc/security/limits.conf
> when the daemon is started as a user other than root. At this point,
> having spent as much time as I have learning to write init scripts and
> having to learn systemd unit file syntax for Fedora, life is just too
> short to have to go back and learn upstart too.
>
> For now, I'm giving up and just starting squeezelite via
> start-stop-daemon with --chuid root. I *hate* having to resort to such
> a kludge. But I don't know how else to avoid:
>
> >
Code:
--------------------
> >
> [11:13:42.076085] output_init_alsa:673 unable to lock memory: Cannot
allocate memory
> [11:13:42.079369] output_init_alsa:696 unable to set output sched fifo:
Operation not permitted
>
--------------------
> >
>
> If anyone else has figured out how to do this, I'd *greatly*
> appreciate hearing how it's done.
It seems that PAM (and hence /etc/securitylimits.d...) only works for
users that are logged on. I found several references to
start-stop-daemon not working with PAM. Several places I almost
thought I had it (mainly related to jack), but nothing quite worked.
There are suggestions that /etc/pam.d/su should have this enabled.
Code:
--------------------
session required pam_limits.so
--------------------
but it doesn't work for me.
LMS 7.9 on VortexBox Midi, Xubuntu 14.04, FLACs 16->24 bit,
44.1->192kbps. LMS & Squeeze2upnp (Beta - derived from squeezelite) to
Musical Fidelity M1 CLiC and Marantz CR603 UPnP renderers. Squeezelite
to PC sound. Minimserver (server) and upplay (control point) to same
amps & to upmpdcli/mpd PC renderers. Meridian USB Explorer DAC from PCs
to speakers/headphones. Wireless Xubuntu 14.04 laptop controls
LMS/upplay via Firefox. Have a Touch with EDO, and a spare, but don't
use.
------------------------------------------------------------------------
PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642
View this thread: http://forums.slimdevices.com/showthread.php?t=97046
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix