Back to home page

EIC code displayed by LXR

 
 

    


Warning, /swf-monitor/epicprod-ops-agent.service is written in an unsupported language. File is not indexed.

0001 [Unit]
0002 Description=ePIC Production Operations Agent (epicprod-ops)
0003 After=network.target
0004 # System singleton on the anycast queue /queue/epicprod.ops. A persistent agent
0005 # that keeps exiting is sick regardless of exit code: cap the restart burst so it
0006 # lands in 'failed' (visible) instead of flapping forever. The cleaner-killer cron
0007 # reaps duplicates and recovers a capped-out unit (reset-failed + restart).
0008 StartLimitIntervalSec=120
0009 StartLimitBurst=5
0010 
0011 [Service]
0012 Type=simple
0013 User=wenauseic
0014 Group=eic
0015 WorkingDirectory=/opt/swf-monitor/current
0016 # All env (REQUESTS_CA_BUNDLE, X509_USER_PROXY, ACTIVEMQ_*, SWF_*) comes from the
0017 # deploy EnvironmentFile — the single source the web tier and crons also read.
0018 # SWF_TMP_DIR is omitted: the agent and the web view both default to /data/swf-tmp.
0019 EnvironmentFile=/opt/swf-monitor/config/env/production.env
0020 ExecStart=/opt/swf-monitor/current/.venv/bin/python /opt/swf-monitor/current/agents/epicprod_ops_agent.py
0021 Restart=always
0022 RestartSec=15
0023 # Deliberate-shutdown back door: the agent exits 100 on a bus 'shutdown' (see
0024 # agents/epicprod_ops_agent.py). systemd must treat that as a clean, final stop,
0025 # not a failure to restart. Any other exit code is a crash and is restarted.
0026 SuccessExitStatus=100
0027 RestartPreventExitStatus=100
0028 
0029 [Install]
0030 WantedBy=multi-user.target