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

log machine-readable status information #11

Closed
wants to merge 1 commit into from
Closed

Conversation

N-Coder
Copy link
Owner

@N-Coder N-Coder commented May 25, 2018

Fixes #5, use tail and grep to wait for completed startup.

The result with the default logger configuration is:

$ cat .local/share/Stud.IP-Fuse/studip-status.txt
STARTING 0 0 -1109673712 9571 muster12 /home/muster/Stud.IP
INITIALIZING 0 0 0 9578 muster12 /home/muster/Stud.IP
READY 0 0 0 9578 muster12 /home/muster/Stud.IP
STOPPING 0 0 0 9578 muster12 /home/muster/Stud.IP
TERMINATED 0 0 0 9578 muster12 /home/muster/Stud.IP
...

The format is status fuse_get_context_uid fuse_get_context_gid fuse_get_context_pid os_process_id username mountpath.
So, to wait for successfull startup use grep -q READY <(tail -f ~/.local/share/Stud.IP-Fuse/studip-status.txt) (see here for more details on the -q and timeouts) and use mountpoint /home/muster/Stud.IP to verify the mount afterwards.

@N-Coder N-Coder mentioned this pull request Dec 12, 2018
@N-Coder
Copy link
Owner Author

N-Coder commented Dec 12, 2018

Included in #13

@N-Coder N-Coder closed this Dec 12, 2018
@N-Coder N-Coder deleted the log-status branch December 12, 2018 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant