Hi,
I am using manage-procs to deploy and manage IOC’s using systemd. It creates the systemd files that look something like what is shown below. I mount a network drive over nfs at boot that contains the built IOC binaries for the service to
run. The service is enabled, it should start at boot but it doesn’t because the ConditionPathIsDirectory fails. If I go to the directory after the system has booted, I can see that it has been mounted correctly and exists. I cc Wayne because I seem to remember
us having a similar problem at ESS about 2 years ago but I can’t remember how we solved it! Does anybody have any ideas?
Many thanks,
Will
emil@sissy-ioc-01:/etc/systemd/system$ cat procserv-EMIL_KTH_00.service
[Unit]
Description=procServ for EMIL_KTH_00
After=network.target remote-fs.target
ConditionPathIsDirectory=/home/emil/Apps/epics/R7.0.4.1/prod/ioc/EMILEL/EMIL_KTH_00/1-4-0/iocBoot/iocEMIL_KTH_00
[Service]
Type=simple
ExecStart=/usr/local/bin/procServ-launcher --system EMIL_KTH_00
RuntimeDirectory=procserv-EMIL_KTH_00
StandardOutput=syslog
StandardError=inherit
SyslogIdentifier=procserv-EMIL_KTH_00
User=emil
Group=emil
[Install]
WantedBy=multi-user.target