Announcement

Collapse
No announcement yet.

My usecase - need guidance

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wiking
    replied
    Originally posted by paul- View Post
    tce-load must run with non-root rights. So if your main script is running with root permissions, then you script is correct.
    So it's ok. My script is launched by one of the three "user command". I have read that they are run with root.

    Leave a comment:


  • paul-
    replied
    tce-load must run with non-root rights. So if your main script is running with root permissions, then you script is correct.

    Leave a comment:


  • Wiking
    replied
    Originally posted by Wiking View Post
    If a put that in my script
    sudo /usr/local/etc/init.d/slimserver start

    is it enough ?
    Solved.

    sudo -u tc tce-load -i slimserver
    sudo /usr/local/etc/init.d/slimserver start


    did the job.
    I don't know why but priority and passphrase are also working.
    So everything is solved !

    may be sudo -u tc is senseless.....

    Leave a comment:


  • Wiking
    replied
    If a put that in my script
    sudo /usr/local/etc/init.d/slimserver start

    is it enough ?

    Leave a comment:


  • Wiking
    started a topic My usecase - need guidance

    My usecase - need guidance

    Hello,

    I need some help with my usecase.
    I made a player which is working well (at start it connects to LMS and play, so it's ok).
    Now I would like to achieve this :
    - my player is designed to be mobile so at boot it should check if it is on a specific wifi network (home). If it is at home, then it should start as a player connected to home LMS.
    - if it can't find home network, it should connect to whatever network it knows and launch a player and LMS server in order to be autonomous.

    What I did so far :
    - managed multiple SSID (I had issue with wpa_passphrase and priority but that's not my priority). So my player can connect to multiple wifi networks.
    - wrote a script that checks if it is connected on a specific network (my home) and if the LMS server is running.
    - connect to this LMS in case it find it.

    I would appreciate help for the part where I need to launch a LMS server....

    I had a look to pcp_startup.sh but didn't find a way to achieve my goal due to poor bash knowledge (part called "Start LMS")

    If anyone can help me, I would be grateful.
    Last edited by Wiking; 2022-02-01, 20:09.
Working...
X