1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Alarms.services in Phoebus Alarms |
From: | 刘晓敏 via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Thu, 16 Nov 2023 15:23:03 +0800 (GMT+08:00) |
Hi,
I'm having a problem with alarm-servers. I've attached the error. Phoebus shows normal when I execute the ./alarm-server.sh directly in the terminal, but it shows ‘No Alarm Server Connection’ when I use the alarms.service file for autostart. At the same time, I find it strange that the alarm config file can be imported successfully. It seems that the alarm-server can connect to Phoebus, but PV cannot. The PV data is incorrect, and what is the reason for this?
The alarms.server file is as follows:
[Unit]
After=network.target kafka.target
Requires=zookeeper.service
Requires=kafka.service
[Service]
User=sysadmin
Type=simple
ExecStart=/opt/alarm/phoebus/services/alarm-server/alarm-service.sh -settings /opt/alarm/phoebus/services/alarm-server/settings.ini
WorkingDirectory=/opt/alarm/phoebus/services/alarm-server/
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
Thanks,
xiaomin
Attachment:
2.png
Description: PNG image