You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to issue #118, if one installs systemctl3.py and journalctl3.py to, for example, /opt/systemd-alt and then symlinks them to the usual /bin (or /usr/bin) locations, journalctl3.py will complain because it cannot find systemctl3.py.
...but, as I am not a Python guy by trade, I do not know if there may be a more-reliable way to resolve the systemctl script from the within the journalctl script (besides maybe an array of 'reasonable' locations)...?
If the above is sane enough, perhaps it can be patched in a future release?
The text was updated successfully, but these errors were encountered:
Thanks for sharing this issue. It seems like there might be a compatibility problem between the installed version of systemctl3.py and journalctl3.py. Have you considered using the Windsor Replacement for systemctl and journalctl instead? It might resolve the issue you are facing and provide a more reliable solution."
Similar to issue #118, if one installs systemctl3.py and journalctl3.py to, for example,
/opt/systemd-alt
and then symlinks them to the usual/bin
(or/usr/bin
) locations, journalctl3.py will complain because it cannot find systemctl3.py.Consider...
In #118, it complains if
systemctl3.py
has not been saved assystemctl3.py
, because of:docker-systemctl-replacement/files/docker/journalctl3.py
Line 18 in 9cbe1a0
In this case, however, it complains if
journalctl
is a symlink, because of:docker-systemctl-replacement/files/docker/journalctl3.py
Line 19 in 9cbe1a0
In the above example,
os.path.dirname(sys.argv[0])
resolves to/usr/bin/systemctl3.py
, which isn't the correct location.I think this can be resolved by altering #L19 to:
...but, as I am not a Python guy by trade, I do not know if there may be a more-reliable way to resolve the
systemctl
script from the within thejournalctl
script (besides maybe an array of 'reasonable' locations)...?If the above is sane enough, perhaps it can be patched in a future release?
The text was updated successfully, but these errors were encountered: