Now that the daemons are systemd processes, it would be great to have some CLI helper tools for common tasks. This would be things like:
- listing all processes (currently
systemctl list-units 'hispec-daemon@*' --all)
- stopping and starting individual processes (currently
systemctl start hispec@hsfei_adc
- stopping all processes (currently
systemctl stop hispec-daemon@*)
- starting all processes (currently
systemctl list-units 'hispec-daemon@*' --all)
- Checking a daemon's status/logs (currently
journalctl -u hispec-daemon@hsfei_lsm -f)
I'm sure some of these are already planned (e.g. there are likely going to be startup and shutdown scripts for the instrument and for subsystems?). If so, nothing special is needed here, we can just wait for those elements to be rolled out.
Other things might not be (ex. daemons status checking and listing all processes). Those could be folded into libby like we talked about, but they could also just be bash aliases. Whatever works. The goal is just to make it easier for people to work in the middle of the night without having to remember long commands - something like hispec_list_processes and hispec_show_log lsm is easy to remember and if we define a uniform prefix (e.g. hispec_), then in the middle of the night, someone can type hispec_ then tab-complete to find all the helper utilities available to them rather than trying to remember what OS built-in feature is needed for what task.
Now that the daemons are systemd processes, it would be great to have some CLI helper tools for common tasks. This would be things like:
systemctl list-units 'hispec-daemon@*' --all)systemctl start hispec@hsfei_adcsystemctl stop hispec-daemon@*)systemctl list-units 'hispec-daemon@*' --all)journalctl -u hispec-daemon@hsfei_lsm -f)I'm sure some of these are already planned (e.g. there are likely going to be startup and shutdown scripts for the instrument and for subsystems?). If so, nothing special is needed here, we can just wait for those elements to be rolled out.
Other things might not be (ex. daemons status checking and listing all processes). Those could be folded into libby like we talked about, but they could also just be bash aliases. Whatever works. The goal is just to make it easier for people to work in the middle of the night without having to remember long commands - something like
hispec_list_processesandhispec_show_log lsmis easy to remember and if we define a uniform prefix (e.g.hispec_), then in the middle of the night, someone can typehispec_then tab-complete to find all the helper utilities available to them rather than trying to remember what OS built-in feature is needed for what task.