Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#371836 - 26/03/2019 13:10 Hijack: restart player without remounting disks read-only?
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
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?
_________________________
-- roger

Top
#371841 - 27/03/2019 19:49 Re: Hijack: restart player without remounting disks read-only? [Re: Roger]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
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.

Top
#371842 - 27/03/2019 20:24 Re: Hijack: restart player without remounting disks read-only? [Re: mlord]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Originally Posted By: mlord
Hijack has a telnet server.


Elixir doesn't have a telnet client smile
_________________________
-- roger

Top
#371843 - 27/03/2019 20:31 Re: Hijack: restart player without remounting disks read-only? [Re: Roger]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
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.

Top
#371846 - 27/03/2019 21:09 Re: Hijack: restart player without remounting disks read-only? [Re: Roger]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
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.

Top
#371849 - 27/03/2019 21:32 Re: Hijack: restart player without remounting disks read-only? [Re: mlord]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
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...?
_________________________
-- roger

Top
#371850 - 27/03/2019 21:59 Re: Hijack: restart player without remounting disks read-only? [Re: Roger]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
You can send keypresses over http:

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

Or (I think) over FTP:

SITE BUTTON r

Or something like that. smile

Top