]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
deployment: systemd .service and environment files
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Fri, 7 Jul 2017 08:42:16 +0000 (10:42 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Fri, 7 Jul 2017 08:42:16 +0000 (10:42 +0200)
deployment/balzers_ioc.service [new file with mode: 0644]
deployment/css_archiver.service [new file with mode: 0644]
deployment/css_archiver_env.systemd [new file with mode: 0644]
deployment/epics_env.systemd [new file with mode: 0644]
deployment/huber_ioc.service [new file with mode: 0644]
deployment/pt100_ioc.service [new file with mode: 0644]
deployment/vacom_ioc.service [new file with mode: 0644]

diff --git a/deployment/balzers_ioc.service b/deployment/balzers_ioc.service
new file mode 100644 (file)
index 0000000..431cb2d
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=EPICS IOC "BALZERS_PKG020"
+After=network.target
+
+[Service]
+Type=simple
+User=scs
+EnvironmentFile=/home/scs/EPICS/env/epics_env.systemd
+Environment="EPICS_CAS_INTF_ADDR_LIST=192.168.10.104"
+WorkingDirectory=/home/scs/EPICS/IOCs/BALZERS_PKG020/iocBoot/iocBALZERS_PKG020
+ExecStart=/usr/bin/procServ -n balzers_ioc -f 20104 /home/scs/EPICS/IOCs/BALZERS_PKG020/iocBoot/iocBALZERS_PKG020/st.cmd
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target
diff --git a/deployment/css_archiver.service b/deployment/css_archiver.service
new file mode 100644 (file)
index 0000000..54a7b11
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=CSS Archiver for EPICS
+After=network.target
+
+[Service]
+Type=simple
+User=scs
+EnvironmentFile=/u/scs/EPICS/env/css_archiver_env.systemd
+WorkingDirectory=/u/scs/CSS-Archiver
+ExecStart=/usr/bin/procServ -n css_archiver -f 20000 ./archive-engine-4.1.0/ArchiveEngine -pluginCustomization ${pluginCustomization} -engine ${engine_name} -port ${engine_port} -data /u/scs/CSS-Archiver/
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target
diff --git a/deployment/css_archiver_env.systemd b/deployment/css_archiver_env.systemd
new file mode 100644 (file)
index 0000000..27745f9
--- /dev/null
@@ -0,0 +1,3 @@
+engine_name=CBMMVDArchiveEngine
+engine_port=4812
+pluginCustomization=/u/scs/CSS-Archiver/pluginCustomization_dcs_engine.ini
diff --git a/deployment/epics_env.systemd b/deployment/epics_env.systemd
new file mode 100644 (file)
index 0000000..3561d72
--- /dev/null
@@ -0,0 +1,7 @@
+EPICS_ROOT=/home/scs/EPICS/EPICS
+EPICS_BASE=${EPICS_ROOT}/base
+EPICS_HOST_ARCH=linux-arm
+EPICS_BASE_BIN=${EPICS_BASE}/bin/${EPICS_HOST_ARCH}
+EPICS_BASE_LIB=${EPICS_BASE}/lib/${EPICS_HOST_ARCH}
+LD_LIBRARY_PATH=${EPICS_BASE_LIB}:${LD_LIBRARY_PATH}
+PATH=${PATH}:${EPICS_BASE_BIN}
diff --git a/deployment/huber_ioc.service b/deployment/huber_ioc.service
new file mode 100644 (file)
index 0000000..6a34fad
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=EPICS IOC "HUBER_COOLING"
+After=network.target
+
+[Service]
+Type=simple
+User=scs
+EnvironmentFile=/home/scs/EPICS/env/epics_env.systemd
+Environment="EPICS_CAS_INTF_ADDR_LIST=192.168.10.101"
+WorkingDirectory=/home/scs/EPICS/IOCs/HUBER_COOLING/iocBoot/iocHUBER_COOLING
+ExecStart=/usr/bin/procServ -n huber_ioc -f 20101 /home/scs/EPICS/IOCs/HUBER_COOLING/iocBoot/iocHUBER_COOLING/st.cmd
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target
diff --git a/deployment/pt100_ioc.service b/deployment/pt100_ioc.service
new file mode 100644 (file)
index 0000000..823384d
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=EPICS IOC "PT100_BOARD"
+After=network.target
+
+[Service]
+Type=simple
+User=scs
+EnvironmentFile=/home/scs/EPICS/env/epics_env.systemd
+Environment="EPICS_CAS_INTF_ADDR_LIST=192.168.10.102"
+WorkingDirectory=/home/scs/EPICS/IOCs/PT100_BOARD/iocBoot/iocPT100_BOARD
+ExecStart=/usr/bin/procServ -n pt100_ioc -f 20102 /home/scs/EPICS/IOCs/PT100_BOARD/iocBoot/iocPT100_BOARD/st.cmd
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target
diff --git a/deployment/vacom_ioc.service b/deployment/vacom_ioc.service
new file mode 100644 (file)
index 0000000..ce8efe6
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=EPICS IOC "VACOM_MVC3"
+After=network.target
+
+[Service]
+Type=simple
+User=scs
+EnvironmentFile=/home/scs/EPICS/env/epics_env.systemd
+Environment="EPICS_CAS_INTF_ADDR_LIST=192.168.10.103"
+WorkingDirectory=/home/scs/EPICS/IOCs/VACOM_MVC3/iocBoot/iocVACOM_MVC3
+ExecStart=/usr/bin/procServ -n vacom_ioc -f 20103 /home/scs/EPICS/IOCs/VACOM_MVC3/iocBoot/iocVACOM_MVC3/st.cmd
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target