Hijack: restart player without remounting disks read-only?

Posted by: Roger

Hijack: restart player without remounting disks read-only? - 26/03/2019 13:10

With Hijack, I can issue SITE RW to remount the disks read-write. But...

If I issue SITE REBOOT over FTP, the disks are remounted read-only. I'd like the player to have the opportunity to rebuild (and write) the database files.

I've also tried SITE EXEC echo reboot > /proc/empeg_notify. Same outcome.

Is there a way to mount the disks read-write and restart the player app without messing around with a serial connection?

Also: did the SITE command ever get implemented over HTTP, rather than FTP?
Posted by: mlord

Re: Hijack: restart player without remounting disks read-only? - 27/03/2019 19:49

There is a way to do EXEC over http -- I'll have to look it up later. But perhaps simpler than much of this is to use telnet rather than ftp ?

Hijack has a telnet server.
Posted by: Roger

Re: Hijack: restart player without remounting disks read-only? - 27/03/2019 20:24

Originally Posted By: mlord
Hijack has a telnet server.


Elixir doesn't have a telnet client smile
Posted by: mlord

Re: Hijack: restart player without remounting disks read-only? - 27/03/2019 20:31

I looked through the source code, and it appears my recollection was incorrect: no obvious EXEC over http.

Perhaps I should just implement a "restart player" or "restart player in r/w" option native to Hijack..

On a train hundreds of miles from my empegs at the moment.
Posted by: mlord

Re: Hijack: restart player without remounting disks read-only? - 27/03/2019 21:09

Rather than hoping I'll remember to do something about this, another method is to write a shell script to do the steps required, FTP that to the player, and run it (script) using SITE EXEC.
Posted by: Roger

Re: Hijack: restart player without remounting disks read-only? - 27/03/2019 21:32

Quote:
another method is to write a shell script to do the steps required


The problem I have is that I can't figure out how to restart the player binary from there anyway. I tried killing pid 1, but bad things happened -- I apparently ended up with two copies of the player running, which was very confusing.

Unless I can send keypresses as if over serial...?
Posted by: mlord

Re: Hijack: restart player without remounting disks read-only? - 27/03/2019 21:59

You can send keypresses over http:

http://my.empeg/?BUTTON=r

Or (I think) over FTP:

SITE BUTTON r

Or something like that. smile