RootMyTV / RootMyTV.github.io

RootMyTV is a user-friendly exploit for rooting/jailbreaking LG webOS smart TVs.
https://RootMy.TV
MIT License
2.16k stars 64 forks source link

Creating a systemd service #59

Closed chcore closed 1 year ago

chcore commented 1 year ago

How do I go about making my own systemd service? If I drop a .service file in /home/root/.config/systemd/user and try a systemctl --user daemon-reload or systemctl --user start testing.service I just get a Failed to connect to bus: No such file or directory.

I cannot write to /etc/systemd/system either, as I just get the error Read-only file system, even after a mount -o rw,remount /.

Is this at all possible? Thank you for this project

Informatic commented 1 year ago

webOS does not support systemd user session daemon. You can try adding a system unit by creating an overlay over /etc/systemd as described here: https://www.webosbrew.org/pages/filesystem-overlays.html#adding-files-to-an-existing-directory

Keep in mind systemd is only present on webOS 4+ (if I remember correctly), if you plan to make some reusable homebrew/guide. On 3.x and older upstart is used for system services.

On Fri, 15 Jul 2022, 08:01 chcore, @.***> wrote:

How do I go about making my own systemd service? If I drop a .service file in /home/root/.config/systemd/user and try a systemctl --user daemon-reload or systemctl --user start testing.service I just get a Failed to connect to bus: No such file or directory.

I cannot write to /etc/systemd/system either, as I just get the error Read-only file system, even after a mount -o rw,remount /.

Is this at all possible? Thank you for this project

— Reply to this email directly, view it on GitHub https://github.com/RootMyTV/RootMyTV.github.io/issues/59, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIUEXU7EGTN62PHLWXGFW3VUD5EXANCNFSM53UOZ6EA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

chcore commented 1 year ago

Thank you @Informatic, I didn't know about OverlayFS. That worked perfectly.