Skip to content
Snippets Groups Projects
Commit 89adc0ba authored by Alexander Soderqvist's avatar Alexander Soderqvist
Browse files

fixed systemd service specification

parent 5746878e
No related branches found
No related tags found
No related merge requests found
......@@ -7,5 +7,8 @@ The work around is to run the ioc as root user. A special systemd service has be
The systemd service specification should be placed in the root file system under /etc/systemd/system/
To reload systemd services run: systemctl daemon-reload
To enable the service from boot, specify path to your rootfs e.g.
systemctl --root=/export/nfsroots/ifc1210/rootfs-NEW/ enable emu-lebt
To reload systemd services and start on already running system: systemctl daemon-reload
To start the ioc: systemctl start emu-lebt
......@@ -2,9 +2,12 @@
Description=IOC: emu-lebt
After=rc-local.service
[Install]
WantedBy=multi-user.target
[Service]
User=root
# Only execute IOC if st.cmd exists
AssertPathExists=/opt/startup/ioc/VME_EMU-iamspecial/emu/st.cmd
......@@ -16,4 +19,4 @@ ExecStartPre=/bin/chown -R ioc:ioc /var/run/procServ/emu
EnvironmentFile=/opt/startup/ioc/VME_EMU-iamspecial/emu/env.sh
# Run procServ with user ioc
ExecStart=/usr/bin/procServ --allow -f -L /var/log/procServ/out-emu -i ^C^D -c /var/run/procServ/%i ${PROCSERV_PORT} ${EPICS_MODULES_PATH}/environment/${ENVIRONMENT_VERSION}/${BASE}/bin/${EPICS_HOST_ARCH}/iocsh /opt/startup/ioc/VME_EMU-iamspecial/%i/st.cmd -n emu
ExecStart=/usr/bin/procServ --allow -f -L /var/log/procServ/out-emu -i ^C^D -c /var/run/procServ/emu ${PROCSERV_PORT} ${EPICS_MODULES_PATH}/environment/${ENVIRONMENT_VERSION}/${BASE}/bin/${EPICS_HOST_ARCH}/iocsh /opt/startup/ioc/VME_EMU-iamspecial/emu/st.cmd -n emu
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment