[INSTRM-376] Establish boot procedures for MHS computers Created: 02/Jun/18  Updated: 26/Jun/19  Resolved: 19/Jun/19

Status: Done
Project: Instrument control development
Component/s: Summit infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: cloomis Assignee: cloomis
Resolution: Done Votes: 0
Labels: SM1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
is blocked by INSTRM-661 make stageManager work with any ics s... Open
Relates
relates to INFRA-236 Please create pfs_launch GitHub repo Done
relates to INSTRM-359 On NIR BEEs (bee-nX), start hxActor i... Done
Story Points: 5
Sprint: 2019 B, 2019 C, SM1-2019 E, SM1-2019 F, SM1-2019 H

 Description   

We need to provide MHS-side scripts at boot time. By "MHS-side" I mean able to use eups to find the right version of software to run. We need this both for root (device drivers) and for the pfs user (for actors).

I'm inclined to do something simple like always calling some /software/boot/bootup.sh as root then as pfs on boot. That can look around using the hostname and username, and return a script if there is one. The only system hooks would be the two calls, and we could use @reboot crontab lines to trigger them.



 Comments   
Comment by cloomis [ 20/Dec/18 ]

As it stands:

  • /software/pfs_launch, from the pfs_launch git repo
  • /software/pfs_launch/bin/setups.sh would be used to set up the MHS environment by all users.
  • /software/pfs_launch/bin/launchFor.sh runs ("."s, actually) scripts in hosts/$host_prefix/$user.
  • Only root and pfs-data scripts for non-NIR BEEs have been tested.
  • Fired off with @reboot /software/pfs_launch/bin/launchFor.sh lines for the two users. No system (/etc) files need to be changed.
  • The only override file is a versions.txt in the root /software/pfs_launch directory: keep it visible and simple.
  • Running on b2, as shipped from JHU.

Works OK for booting. Needs to be reshaped so that users can use it too. Basically split into a setup and a run step.

Not awful.

Comment by hassan [ 10/Jan/19 ]

Following SpS software telecon 2019-01-09: Need to move code to an official PFS GitHub repo

Comment by cloomis [ 22/Jan/19 ]

The @reboot trick is not working on the temp board pi. Not sure why yet; /software might not be mounted, or the currently necessary X server is not running.

Comment by hassan [ 21/Feb/19 ]

Requires documentation for procedures

Comment by hassan [ 21/Mar/19 ]

Expect to finish in a few days

Comment by hassan [ 18/Apr/19 ]

cloomis to discuss with arnaud.lefur

Comment by hassan [ 16/May/19 ]

Discussed with arnaud.lefur and Fabrice. Work in progress and expect this to be done before Jun 17. Some work will be done in the interim however.

Comment by cloomis [ 19/Jun/19 ]

Pushed to Subaru-PFS/ics_launch. Basic docs in docs/ics_launch.rst

Generated at Sat Feb 10 16:24:22 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.