-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Jun 29 15:38:38 ls2-rf systemd[1]: Stopping EPICS Soft IOC ls2-rf-llrf...
Jun 29 15:38:38 ls2-rf systemd[1]: softioc-ls2-rf-llrf.service: Succeeded.
Jun 29 15:38:38 ls2-rf systemd[1]: Stopped EPICS Soft IOC ls2-rf-llrf.
Jun 29 15:38:38 ls2-rf systemd[1]: Starting EPICS Soft IOC ls2-rf-llrf...
Jun 29 15:38:38 ls2-rf procServ[1984]: Caught an exception creating the initial control telnet port: Bad file descriptor
Jun 29 15:38:38 ls2-rf procServ[1984]: /usr/bin/procServ: Exiting with error code: 98
Jun 29 15:38:38 ls2-rf systemd[1]: softioc-ls2-rf-llrf.service: Main process exited, code=exited, status=98/n/a
Jun 29 15:38:38 ls2-rf systemd[1]: softioc-ls2-rf-llrf.service: Failed with result 'exit-code'.
Jun 29 15:38:38 ls2-rf systemd[1]: Failed to start EPICS Soft IOC ls2-rf-llrf.
After a failure systemd automatically restarts the service and it succeeds on the second try. Here's my service file:
[Unit]
Description=EPICS Soft IOC ls2-rf-llrf
Requires=network.target
Wants=caRepeater.service
After=network.target caRepeater.service
RequiresMountsFor=
[Service]
Environment="AUTOSAVE_DIR=/var/lib/softioc-ls2-rf-llrf"
Environment="EPICS_CA_MAX_ARRAY_BYTES=8519680"
Environment="EPICS_CA_SEC_FILE=/usr/local/lib/iocapps/fe_ca_sec/rf.acf"
Environment="EPICS_IOC_LOG_INET=sys-logstash.cts"
Environment="EPICS_IOC_LOG_PORT=7005"
Environment="EPICS_PUT_LOG_INET=sys-logstash.cts"
Environment="EPICS_PUT_LOG_PORT=7004"
Environment="ETCD_SERVER=etcd.cts:2379"
EnvironmentFile=-/etc/iocs/ls2-rf-llrf/config
ExecStart=/usr/bin/procServ --foreground --quiet --chdir=/usr/local/lib/iocapps/ls2-rf-llrf/iocBoot/iocls2-rf-llrf --ignore=^C^D^] --coresize=10000000 --restrict --logfile=/var/log/softioc-ls2-rf-llrf/procServ.log --name ls2-rf-llrf --port 4051 --port unix:/run/softioc-ls2-rf-llrf/procServ.sock /usr/local/lib/iocapps/ls2-rf-llrf/iocBoot/iocls2-rf-llrf/st.cmd
Type=notify
NotifyAccess=all
Restart=always
User=softioc
RuntimeDirectory=softioc-ls2-rf-llrf
[Install]
WantedBy=multi-user.target
I'm using procServ 2.7.0-1 on Debian 10 "buster".
Metadata
Metadata
Assignees
Labels
No labels