Experimental Physics and
| |||||||||||||||
|
Hi, "Is there a way to automatically start the python script with the ioc?"
-> You can simply use procServ as well to execute your python script De : Tech-talk <tech-talk-bounces at aps.anl.gov> de la part de Donny Domagoj Cosic via Tech-talk <tech-talk at aps.anl.gov>
Envoyé : mercredi 5 janvier 2022 21:30:07 À : Ralph Lange via Tech-talk Objet : Start IOC automatically at boot Happy new year!
I am trying to install systemd-softioc (procServ) as outlines here https://github.com/NSLS-II/systemd-softioc. I followed the instructions and successfully installed it on my Raspberry Pi. I installed the IOC and can manually start the softioc, however I am not able to start the IOC using manage-iocs. I get the following output: softioc@raspberrypi:/epics/iocs/testIOC2$ sudo manage-iocs start testIOC2 Starting the IOC 'testIOC2' ... Failed to start the IOC 'testIOC2'; type 'sudo journalctl -xe' for details. Below is my config file and output from the journalctl Config --------- NAME=testIOC2 PORT=4053 HOST=raspberrypi USER=softioc CHDIR="/epics/iocs/testIOC2/iocBoot/ioctestIOC2" EXEC="$CHDIR/st.cmd" Output from journalctl ------------------------- Jan 05 21:11:29 raspberrypi sudo[13371]: softioc : TTY=pts/0 ; PWD=/epics/iocs/testIOC2 ; USER=root ; COMMAND=/usr/bin/manage-iocs install testIOC2 Jan 05 21:11:29 raspberrypi sudo[13371]: pam_unix(sudo:session): session opened for user root by (uid=0) Jan 05 21:11:29 raspberrypi sudo[13371]: pam_unix(sudo:session): session closed for user root Jan 05 21:11:43 raspberrypi sudo[13423]: softioc : TTY=pts/0 ; PWD=/epics/iocs/testIOC2 ; USER=root ; COMMAND=/usr/bin/manage-iocs start testIOC2 Jan 05 21:11:43 raspberrypi sudo[13423]: pam_unix(sudo:session): session opened for user root by (uid=0) Jan 05 21:11:43 raspberrypi systemd[1]: Reloading. Jan 05 21:11:43 raspberrypi systemd[1]: [email protected]: Current command vanished from the unit file, execution of the command list won't be resume Jan 05 21:11:43 raspberrypi systemd[1]: plexmediaserver.service: Current command vanished from the unit file, execution of the command list won't be resumed. Jan 05 21:11:44 raspberrypi systemd[1]: Condition check resulted in IOC testIOC2 via procServ being skipped. -- Subject: A start job for unit softioc-testIOC2.service has finished successfully -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- A start job for unit softioc-testIOC2.service has finished successfully. -- -- The job identifier is 1803. Jan 05 21:11:45 raspberrypi sudo[13423]: pam_unix(sudo:session): session closed for user root Jan 05 21:11:54 raspberrypi sudo[13487]: softioc : TTY=pts/0 ; PWD=/epics/iocs/testIOC2 ; USER=root ; COMMAND=/usr/bin/journalctl -xe Jan 05 21:11:54 raspberrypi sudo[13487]: pam_unix(sudo:session): session opened for user root by (uid=0) The softioc testIOC2 contains a few records which get updated from a python script. Which brings me to my next questions. Is there a way to automatically start the python script with the ioc? Thank you very much for your help, Regards -- Donny Domagoj Cosic Laboratory for Ion Beam Interactions Ruđer Bošković Institute Bijenička cesta 54 | HR-10 000 Zagreb | CROATIA T: +385 1 4561 041 | @: dcosic at irb.hr | www.irb.hr
| ||||||||||||||
ANJ, 14 Sep 2022 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |