Advertisement
mikedep333

Layout of clientside users private .arctica folder.

May 7th, 2015
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. # The Arctica Project Preliminary Technical Specifications
  2. ## Layout of clientside users private .arctica folder.
  3.  
  4.  
  5.  
  6.  
  7. ### Example Folder Tree
  8. ```
  9. .arctica/
  10. <A_SSH_SID>.SSH/
  11. execs.info
  12. asshm.sock
  13. opensshm.sock
  14. fail.log
  15. drawer/
  16. <A_CORE_SID>.COR/
  17. main/
  18. c2s_<DESC>_<SOCK_FWD_ID>.sock
  19. s2c_<DESC>_<SOCK_FWD_ID>.sock
  20. tmp/
  21. c2s_<SOCK_FWD_ID>.sock
  22. s2c_<SOCK_FWD_ID>.sock
  23. teki/
  24. .tekiable
  25. c2s_<APPNAME>_<APP_SID>.sock
  26. s2c_<APPNAME>_<APP_SID>.sock
  27. ```
  28.  
  29.  
  30. ### Folders Files and Sockets
  31. #### .arctica/
  32. *The "home" of all things Arctica*
  33. I dont think this one warants more explanation.
  34.  
  35.  
  36. #### &lt;A_SSH_SESSION_ID&gt;.SSH/
  37. *.arctica/&lt;A_SSH_SESSION_ID&gt;.SSH/*
  38. Individual base folder for an arctica SSH session.
  39. Created by the respective "Arctica SSH Master" in its initial startup phase.
  40.  
  41.  
  42. #### execs.info
  43. *.arctica/&lt;A_SSH_SESSION_ID&gt;.SSH/execs.info*
  44. Plain text file contaning information about various presistent executables
  45. that pertain to this particular SSH connection.
  46. First line should be the PID of the parent exec.
  47. Created by the respective "Arctica SSH Master" in its initial startup phase.
  48.  
  49.  
  50. #### asshm.sock
  51. *.arctica/&lt;A_SSH_SESSION_ID&gt;.SSH/asshm.sock*
  52. Control socket for the respective "Arctica SSH Master".
  53. (Not to be confused with the OpenSSH master socket!)
  54. Created by the respective "Arctica SSH Master" in its initial startup phase.
  55.  
  56. #### opensshm.sock
  57. *.arctica/&lt;A_SSH_SESSION_ID&gt;.SSH/opensshm.sock*
  58. Thist is the OpenSSH control socket... created by "ssh"..
  59. For more info about this socket check out the -S and -M options in the
  60. openssh ssh man page ("man ssh").
  61.  
  62. #### fail.log
  63. *.arctica/&lt;A_SSH_SESSION_ID&gt;.SSH/fail.log*
  64. Created by the respective "Arctica SSH Master".
  65. Should only be created if there is a fatal error that we're unable to report
  66. through the main arctica errlog/debugging methods.
  67. [INSERT LINK TO DOCS REGARDING ERROR LOGGING AND DEBUGGING]
  68.  
  69.  
  70. #### drawer/
  71. *.arctica/&lt;A_SSH_SESSION_ID&gt;.SSH/drawer/*
  72. A folder where we keep all the sockets (a.k.a. socks) pretaining to respective Arctica Core sessions. Keep in mind that an "Arctica SSH sessions" is not a "Core session".
  73. The folder shall be created by the respective "Arctica SSH Master" in its initial startup phase.
  74. [INSERT LINK TO DOCS REGARDING SESSION TYPES]
  75.  
  76. #### &lt;A_CORE_SID&gt;.COR/
  77. *.arctica/&lt;A_SSH_SESSION_ID&gt;.SSH/drawer/&lt;A_CORE_SID&gt;.COR/*
  78. Future "sepparating" the drawer into folders for each respective "Arctica Core Session".
  79. Folder is created by the "Core Session Master", which would also clean it up when connection to the respective core session is terminated.
  80.  
  81. #### main/
  82. *.arctica/&lt;A_SSH_SESSION_ID&gt;.SSH/drawer/&lt;A_CORE_SID&gt;.COR/main/*
  83. This folder should contain somewhat permanent sockets that whould remain in use for the duration of the time we're connected.
  84. Examples would be sockets for audio or graphics transport.
  85. Folder is created by the "Core Session Master", which would also clean it up when connection to the respective core session is terminated.
  86.  
  87. #### tmp/
  88. *.arctica/&lt;A_SSH_SESSION_ID&gt;.SSH/drawer/&lt;A_CORE_SID&gt;.COR/tmp/*
  89. This folder should be used for sittuations where you need a socket forwarded for an individual task. This could for instance be dumping over some raw data in a "scp" fashion. Or just about anything that just needs a socket temporary socket for a very brief moment or individual operation.
  90. If for instanec you are going to be dumping some data consistently every 5seconds or so. You may want to concider writing up something that you declare as a "main" socket.
  91. Folder is created by the "Core Session Master", which would also clean it up when connection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement