Files
hla_framework_bd/docs/steps.md
T
Benjamin Labrecque 051ed3311b
Deploy bin / deploy (push) Successful in 2s
Deploy agebd python package / deploy (push) Successful in 3s
chore: add deploy and restart new service
2026-07-08 11:32:54 +02:00

2.8 KiB
Raw Blame History

Manual steps to be automated

  • Define Name, e.g., TUNEFBX
  • Add to Master IOC
    • In git repo gitea/A_BD https://gitea.psi.ch/epics_iocboot_sls/A_BD
    • Edit AGEBD-CPCL-MASTER_main.subs
    • Login on machine network and reinstall/restart master IOC
      • Ssh sls-lca
      • ioc install -V --ioc AGEBD-CPCL-MASTER clean
      • ioc shell AGEBD-CPCL-MASTER then ctrl + x
  • Add to Master Service
  • Prepare python file
  • Prepare IOC for new Service
    • In git repo gitea/A_BD https://gitea.psi.ch/epics_iocboot_sls/A_BD
    • Copy directory AGEBD-CPCL-TEMPLATE to AGEBD-CPCL-TUNEFBX
    • Update all filenames
    • Update all files
    • Add required pvs to .template file
    • Add IOC to readme.md and find port number to be configured in yaml file
    • Git push
  • Initialize / Start IOC for new service
    • Login on machine network and install the new IOC
      • Ssh sls-lca
      • Cd /sls/bd/
      • ioc install -V --ioc AGEBD-CPCL-TUNEFBX clean
    • Login on BD IOC host for access to shellbox for initial start of new IOC
      • ssh sls-vserv-bd-01
      • sudo shellbox status
      • sudo shellbox reload
      • sudo shellbox status
      • sudo shellbox start XXXXXXX
  • Prepare systemd unit file
    • In git repo gitea/sls_bd https://gitea.psi.ch/autodeploy_bin/sls_bd
    • Copy systemd/AGEBD-SERVICE-TEMPLATE.service systemd/AGEBD-SERVICE-TUNEFBX.service
    • Edit systemd/AGEBD-SERVICE-TUNEFBX.service for starting AGEBD-SERVICE-TUNEFBX.py
  • Initialize / Start systemd service
    • Login on BD service host
    • ssh sls-vserv-bd-hla01
    • sudo su svcusr-sls2hla
    • Check if systemctl is working : >>systemctl user
      • If return is "Failed to connect to bus: No such file or directory"
      • export XDG_RUNTIME_DIR=/run/user/51393
    • systemctl --user daemon-reload
    • systemctl --user enable /sls/bd/bin/systemd/AGEBD-SERVICE-TUNEFBX.service
    • systemctl --user start AGEBD-SERVICE-TUNEFBX.service
  • Add to Service overview GUI
  • Make GUI dedicated to new service