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 host symlinks for /var/log/wtmp and /var/run #194

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

bedroge
Copy link
Collaborator

@bedroge bedroge commented Jan 19, 2024

This should fix the issues with w and who described in https://gitlab.com/eessi/support/-/issues/32, and also the last command.

Without these symlinks:

$ source /cvmfs/pilot.eessi-hpc.org/versions/2023.06/init/bash 

[EESSI pilot 2023.06] $ w
 14:16:24 up 3 days, 23:32,  0 users,  load average: 0.00, 0.00, 0.00
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
[EESSI pilot 2023.06] $ who
[EESSI pilot 2023.06] $ last
last: cannot open /cvmfs/pilot.eessi-hpc.org/versions/2023.06/compat/linux/x86_64/var/log/wtmp: No such file or directory

With the host symlinks in place (tested in a non-published transaction on the pilot Stratum 0):

[EESSI pilot 2023.06] $ w
 14:17:34 up 3 days, 23:33,  2 users,  load average: 0.00, 0.00, 0.00
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
bob      pts/0     14:12    1.00s  0.04s  0.00s w
bob      pts/1     14:14    6.00s  0.07s  0.07s -bash
[EESSI pilot 2023.06] $ who
bob      pts/0        2024-01-19 14:12 (<REMOVED ACTUAL IP ADDRESS>)
bob      pts/1        2024-01-19 14:14 (<REMOVED ACTUAL IP ADDRESS>)
[EESSI pilot 2023.06] $ last
bob      pts/1        <REMOVED ACTUAL IP ADDRESS>    Fri Jan 19 14:14   still logged in
bob      pts/0        <REMOVED ACTUAL IP ADDRESS>    Fri Jan 19 14:12   still logged in
bob      pts/1        <REMOVED ACTUAL IP ADDRESS>   Thu Jan 18 16:39 - 18:58  (02:18)
bob      pts/0        <REMOVED ACTUAL IP ADDRESS>   Thu Jan 18 16:37 - 18:58  (02:20)
bob      pts/0        <REMOVED ACTUAL IP ADDRESS>    Mon Jan 15 14:45 - 15:50  (01:05)
reboot   system boot  4.15.0-213-gener Mon Jan 15 14:44   still running
bob      pts/0        <REMOVED ACTUAL IP ADDRESS>    Mon Jan 15 14:34 - 14:43  (00:09)
bob      pts/0        <REMOVED ACTUAL IP ADDRESS>    Tue Jan  2 19:24 - 19:33  (00:09)

wtmp begins Tue Jan  2 19:24:50 2024

This comment was marked as off-topic.

Copy link
Contributor

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel merged commit cf4d37e into EESSI:main Jan 20, 2024
1 check passed
@boegel boegel added the 2023.06-software.eessi.io 2023.06 version of software.eessi.io label Jan 20, 2024
@bedroge bedroge deleted the var_run_host_symlink branch January 21, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2023.06-software.eessi.io 2023.06 version of software.eessi.io
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants