# # This file is used to have the hdmonServer.py script run as a service so # that it is automatically started at boot or if the process dies. It only # needs to be installed on the computer referenced in the HDMON_UDL envar # that hdmon processes use to know where it is. # # This file should be copied into the /etc/systemd/system directory. # # It then needs to be enabled and started with: # # sudo systemctl daemon-reload # sudo systemctl enable hdmonServer.service # sudo systemctl start hdmonServer.service # #------------------------------------------------------------------------ # Make this service dependent on the autofs service. # This is only for cases when the hdmonService.py program is # accessed via network mounted file system. # [Unit] Description=JLab hdmon zmq pub/sub proxy Wants=autofs.service After=autofs.service [Service] ExecStart=/gluex/builds/devel/Linux_RHEL9-x86_64-gcc11.5.0/bin/hdmonServer.py Restart=on-failure RestartSec=5s StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target