Thanks a lot,
Nick. Regarding the messages: Zaher showed me that it is possible to simply place a custom log file generated by the systemd next to midas.log - then it shows up next to the "midas" tab in "Messages".
One follow-up question: Is it possible to use the systemctl status for the "Running on host" column? Or does this even happen automatically?
Best regards
Stefan
> Hi,
>
> what you describe is exactly how I normally run mhttpd, mlogger, mserver and some other
> custom frontend programs. Eg:
>
> [local:T2KGSC:Running]/>ls /programs/Logger/
> Required y
> Watchdog timeout 100000
> Check interval 180000
> Start command systemctl --user start mlogger
> Auto start n
> Auto stop n
> Auto restart n
> Alarm class AlarmNotify
> First failed 0
>
> The only exception is your last point about stdout and stderr
> being midas messages. I use journalctl to see these.
>
> Cheers,
>
> Nick.
>
> > I want to control (start / stop / monitor its stdout and stderr) an external process (systemd / EPICS IOC shell script) from within MIDAS.
> >
> > In order to make this as convenient as possible for the user, I want the process to behave just like any other MIDAS client:
> > - I can start it from the ODB as a program
> > - The process gets regularly polled from MIDAS to see whether it is still running
> > - I can stop the process from the ODB like any other program
> > - Optional, but highly appreciated: Its stdout and stderr should be a MIDAS message.
> >
> > Did anyone already solve a similar problem?
> >
> > Best regards
> > Stefan |