Coder Social home page Coder Social logo

Comments (4)

devsnd avatar devsnd commented on July 17, 2024

from cherrymusic.

nebbishOne avatar nebbishOne commented on July 17, 2024

Thanks for the help, but sorry, I'm not sure how to "verify using ps". How would I do that when the cherrymusic program won't start?

In the init.d script, which I found referenced on the wiki here, I do see:

start-stop-daemon --start --background --chdir $DIR --chuid $USER:$GROUP --make-pidfile --pidfile $PIDFILE --quiet --exec $PYTHON $DAEMON --test > /dev/null || return 1
        start-stop-daemon --start --background --chdir $DIR --chuid $USER:$GROUP --make-pidfile --pidfile $PIDFILE --quiet --exec $PYTHON $DAEMON -- $DAEMON_ARGS || return 2

The --chuid $USER:$GROUP part is what made me think it should be running as the Pi $User, but I'm not really clear on how Bash works.

The man page for start-stop-daemon says;

-c, --chuid username|uid[:group|gid] Change to this username/uid before starting the process. You can also specify a group by appending a :, then the group or gid in the same way as you would for the chown(1) command (user:group).

Does that help?

Thanks again. I have used CM for quite a long time now and I'd hate to not get it working now on this new Pi.

from cherrymusic.

devsnd avatar devsnd commented on July 17, 2024

Thanks for the help, but sorry, I'm not sure how to "verify using ps". How would I do that when the cherrymusic program won't start?

You could point CMs basedir to a world readable folder to make it start to check, just to narrow down the problem

from cherrymusic.

nebbishOne avatar nebbishOne commented on July 17, 2024

Thanks for your help, I mean that, but it's still not working. Today I tried going back to the cron job, using the systemd service you have in the Setup Guide in the wiki and again making the init.d idea work. They all fail and I can't tell why and I'm just done.

I am using the screen approach for now, even though that won't survive a reboot and it's fine. I'll come back to this again someday.

I'll close this issue.

from cherrymusic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.