Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ps3netsrv #48

Open
bahusoid opened this issue Nov 25, 2019 · 7 comments
Open

Add ps3netsrv #48

bahusoid opened this issue Nov 25, 2019 · 7 comments

Comments

@bahusoid
Copy link

bahusoid commented Nov 25, 2019

Any chance to have ps3netsrv be published on https://bintray.com/tfl/wdpksrc or here?

Would be very grateful for WD MyCloud Gen2 version of app.

@stefaang
Copy link
Member

Any success with this?

ps3netsrv.tar.gz

@stefaang
Copy link
Member

TODO:
Edit /shares/Volume_1/Nas_Prog/ps3netsrv/target/ps3netsrv-starter.sh

#!/bin/sh

BIN_FILE="${SYNOPKG_PKGDEST}/bin/ps3netsrv"

if [ -r "${CFG_FILE}" ]; then
    . "${CFG_FILE}"
fi

${BIN_FILE} "${PS3_DIR}" 2>&1 &
echo "$!" > "${PID_FILE}"

Edit /shares/Volume_1/Nas_Prog/ps3netsrv/target/var/ps3netsrv.conf

PS3_DIR="/shares/Volume_1/whatever"

Then use this to start it.

/shares/Volume_1/Nas_Prog/ps3netsrv/start.sh /shares/Volume_1/Nas_Prog/ps3netsrv

More TODO: fix stop.sh

@bahusoid
Copy link
Author

Awesome!!!
Big thanks for config fixes. I was just going to complain about it :)

I've been able to successfully install and run it and it's recognized by PS3. It's properly starting from Web by ticking Run App (so I didn't try to start it from ssh).

Regarding PS3_DIR I think by default it should look into /shares/Volume_1/Public/PS3

@stefaang
Copy link
Member

@tonyrayo you were also looking for this, no?

@bahusoid
Copy link
Author

Status report: Server was working for few days without any issues. So thanks again for quick response!
Are you planning to publish it officially?

More TODO: fix stop.sh

Not sure what you meant but I see service is properly stopped from Web when Run App is ticked to OFF (checked logs and list of processes) So it seems nothing needs fixing here.

@stefaang
Copy link
Member

Oh, okay, good to hear it's stable.
The pid file is stored in the target directory, while I'd rather store it in /var/run to prevent stale pid files on a system crash (e.g. power cycle).

It will probably take a few weeks before I'm taking this up and doing some proper testing... but feel free to send in a MR to my spksrc branch.

@tonyrayo
Copy link
Contributor

tonyrayo commented Feb 4, 2020

@tonyrayo you were also looking for this, no?

Indeed! I'm currently running it as a docker container for ease of upgrade (your release of Docker/Portainer is wonderous =). Apologies for my lengthy absence by the way; health issues mixed with a return to edu has kept me away from development (as well as most things that fall under "free time projects"). I look forward to hopping back in, even if as a minor role at first!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants