Skip to content

CLI helper tools for common systemctl tasks #223

Description

@danechever

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions