BCDA-APS / epics-bluesky-vm

Simulate a beam line using EPICS IOCs, GUIs, Bluesky and related components.
Other
2 stars 1 forks source link

start soft IOCs when workstation starts #23

Closed prjemian closed 3 years ago

prjemian commented 3 years ago

See Method 2 at https://www.2daygeek.com/execute-run-linux-scripts-command-at-reboot-startup/

# crontab -e

@reboot /home/apsu/bin/start_iocs.sh
prjemian commented 3 years ago

Need to add this to /.bash_aliases:

export EDITOR=/usr/bin/nano
prjemian commented 3 years ago

As stated elsewhere @reboot does not work for users, just root.

prjemian commented 3 years ago

To satisfy, this need a shell script that checks if the IOCs are running.

prjemian commented 3 years ago

The checkup script runs periodically from cron.

prjemian commented 3 years ago

Note: How to add a crontab entry from a shell script on Linux?