[Pianod] Music doesn't start when launched at startup
Andrew Shilliday
andrewshilliday at gmail.com
Wed Jul 24 12:59:20 PDT 2013
Well, I've finally revisited this problem and did manage to figure out what
this issue was. I'm running on a Rasberry Pi and starting pianod via the
provided init.d script. When that script runs, it calls a program called
"start-stop-daemon" which launches pianod as a background process. The
problem was that when it was run at startup it's not launched with a user
account that has access to the audio device. In fact, if you call "ps
-axu", you'll see the user associated with the process is "nobody". The
easy fix was to instruct the start-stop-deamon program to run pianod under
a specific user using the -c arg (I choose the pi user). The relevant line
in the script become:
start-stop-daemon -c pi --start --background --quiet --exec $DAEMON -- $ARGS
On Tue, May 7, 2013 at 2:18 PM, Jimmy Pop <jimmypopali96 at gmail.com> wrote:
> Daemonize a script to check for network and then start it is the
> simple solution.
> I have worked with systemd before but I am not a fan of arch
> My home boxes are 'buntu
> I'll be home @ 18:00 pst (-8 gmt)
>
>
>
> James Wynhoff
> Fuzion3
> CA/NV Control4 Platinum Dealer
> Web: www.Fuzion3lv.com
> Cell: 702-587-4916
>
>
> On May 7, 2013, at 11:05 AM, Peter Li <chinasaurli at gmail.com> wrote:
>
> > For that matter, do you have experience with systemd unit files? Still
> haven't been able to get wsgw service file to wait for network on Fedora or
> Arch. I want to patch wsgw so that it doesn't need network on startup, but
> this would still be good to sort out.
> >
> >
> > On May 7, 2013, at 8:44 AM, Jimmy Pop wrote:
> >
> >> Once I get home I'll whip an init.d file together for him, I am at work
> now.
> >>
> >> Want a pi Perette? I'll ship you one.
> >>
> >
> > _______________________________________________
> > Pianod mailing list
> > Pianod at lists.deviousfish.com
> > http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130724/28fb2de4/attachment-0001.htm>
More information about the Pianod
mailing list