Skip to content

log machine-readable status information#11

Closed
N-Coder wants to merge 1 commit intobetafrom
log-status
Closed

log machine-readable status information#11
N-Coder wants to merge 1 commit intobetafrom
log-status

Conversation

@N-Coder
Copy link
Copy Markdown
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
Copy Markdown
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.

1 participant