mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +02:00
reverting soem changes
This commit is contained in:
parent
6ae48d0f3a
commit
fd03bfa65e
@ -62,7 +62,6 @@ Welcome to slsDetectorPackage's documentation!
|
|||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
servers
|
servers
|
||||||
serverbackground
|
|
||||||
serverupgrade
|
serverupgrade
|
||||||
virtualserver
|
virtualserver
|
||||||
serverdefaults
|
serverdefaults
|
||||||
|
@ -1,128 +0,0 @@
|
|||||||
Detector Server in the Background
|
|
||||||
=================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Eiger
|
|
||||||
-------------
|
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
# step 1: connect to board
|
|
||||||
ssh root@bebxxx
|
|
||||||
|
|
||||||
# step 2: create file
|
|
||||||
vi /etc/rc5.d/S50board_com.ssh
|
|
||||||
|
|
||||||
# step 3: edit contents to start up server (and 10g_led script)
|
|
||||||
#! /bin/sh
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# Provides: feb_com
|
|
||||||
# Required-Start: $remote_fs $all
|
|
||||||
# Required-Stop:
|
|
||||||
# Default-Start: 2 3 4 5
|
|
||||||
# Default-Stop:
|
|
||||||
# Short-Description: Starts the beb_com and feb_com
|
|
||||||
# Description: Starts feb communication ...
|
|
||||||
#
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
/home/root/executables/eigerDetectorServer &> /dev/null &
|
|
||||||
/home/root/executables/10g_led &
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
# step 4: save file and reboot
|
|
||||||
reboot
|
|
||||||
|
|
||||||
#step 5: verify server is running in background
|
|
||||||
ps -ef | grep eigerDetectorServer
|
|
||||||
|
|
||||||
|
|
||||||
Jungfrau
|
|
||||||
-------------
|
|
||||||
|
|
||||||
Check :ref:`Blackfin detector servers in background<blackfin detector servers in background>`.
|
|
||||||
|
|
||||||
|
|
||||||
Gotthard
|
|
||||||
---------
|
|
||||||
|
|
||||||
Check :ref:`Blackfin detector servers in background<blackfin detector servers in background>`.
|
|
||||||
|
|
||||||
|
|
||||||
Mythen3
|
|
||||||
-------
|
|
||||||
|
|
||||||
Check :ref:`Nios detector servers in background<nios detector servers in background>`.
|
|
||||||
|
|
||||||
|
|
||||||
Gotthard2
|
|
||||||
----------
|
|
||||||
|
|
||||||
Check :ref:`Nios detector servers in background<nios detector servers in background>`.
|
|
||||||
|
|
||||||
|
|
||||||
Moench
|
|
||||||
------
|
|
||||||
|
|
||||||
Check :ref:`Blackfin detector servers in background<blackfin detector servers in background>`.
|
|
||||||
|
|
||||||
Ctb
|
|
||||||
---
|
|
||||||
|
|
||||||
Check :ref:`Blackfin detector servers in background<blackfin detector servers in background>`.
|
|
||||||
|
|
||||||
.. _blackfin detector servers in background:
|
|
||||||
|
|
||||||
Blackfin Detector Servers in Background (Respawning)
|
|
||||||
----------------------------------------------------
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
# step 1: connect to board
|
|
||||||
telnet bchipxxx
|
|
||||||
|
|
||||||
# step 2: create a soft link connecting the right server
|
|
||||||
ln -sf xxxDetectorServerxxxxx xxxDetectorServer
|
|
||||||
|
|
||||||
# step 3: edit file to respawn server
|
|
||||||
vi /etc/inittab
|
|
||||||
|
|
||||||
# step 4: add to the end of file
|
|
||||||
ttyS0::respawn:/./xxxDetectorServer
|
|
||||||
|
|
||||||
# step 5: save file and reboot
|
|
||||||
reboot
|
|
||||||
|
|
||||||
# step 6: verify server is running in background
|
|
||||||
ps -ef | grep xxxDetectorServer
|
|
||||||
|
|
||||||
|
|
||||||
.. _nios detector servers in background:
|
|
||||||
|
|
||||||
Nios Detector Servers in Background
|
|
||||||
----------------------------------------
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
# step 1: connect to board
|
|
||||||
ssh root@bebxxx
|
|
||||||
|
|
||||||
# step 2: create a soft link connecting the right server
|
|
||||||
ln -sf xxxDetectorServerxxx xxxDetectorServer
|
|
||||||
|
|
||||||
# step 3: create file
|
|
||||||
vi /etc/init.d/S99DetServer.ssh
|
|
||||||
|
|
||||||
# step 4: add contents
|
|
||||||
#! /bin/sh
|
|
||||||
cd /root >> /dev/null
|
|
||||||
/root/xxxDetectorServer >> /dev/null &
|
|
||||||
|
|
||||||
# step 5: save file and reboot
|
|
||||||
reboot
|
|
||||||
|
|
||||||
# step 6: verify server is running in background
|
|
||||||
ps -ef | grep xxxDetectorServer
|
|
@ -41,14 +41,16 @@ Automatic start
|
|||||||
|
|
||||||
One can start the on-board detector server automatically upon powering on the board.
|
One can start the on-board detector server automatically upon powering on the board.
|
||||||
|
|
||||||
First create a soft link to the binary on board.
|
#. Create a soft link to the binary on board
|
||||||
|
:
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
ln -sf someDetectorServervx.x.x someDetectorServer
|
ln -sf someDetectorServervx.x.x someDetectorServer
|
||||||
|
|
||||||
Then, do the following depending on the detector type.
|
|
||||||
|
|
||||||
|
|
||||||
|
#. Do the following depending on the detector type :
|
||||||
|
|
||||||
Eiger
|
Eiger
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
@ -67,16 +69,27 @@ Jungfrau | Moench | CTB | Gotthard I
|
|||||||
vi /etc/inittab
|
vi /etc/inittab
|
||||||
|
|
||||||
# enter the following line
|
# enter the following line
|
||||||
ttyS0::respawn:/./jungfrauDetectorServer
|
ttyS0::respawn:/./xxxDetectorServer
|
||||||
|
|
||||||
|
|
||||||
Gotthard II | Mythen III
|
Gotthard II | Mythen III
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
# create script in init.d on the board
|
# create script in init.d on board
|
||||||
vi /etc/init.d/S99detServer.sh
|
vi /etc/init.d/S99detServer.sh
|
||||||
|
|
||||||
# enter the following (edit server name)
|
# enter the following (edit server name)
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
cd /root >> /dev/null
|
cd /root >> /dev/null
|
||||||
/root/mythen3DetectorServer >> /dev/null &
|
/root/xxxDetectorServer >> /dev/null &
|
||||||
|
|
||||||
|
|
||||||
|
#. Sync, reboot and verify
|
||||||
|
:
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
sync
|
||||||
|
reboot
|
||||||
|
|
||||||
|
# verify
|
||||||
|
ps -ef | grep xxxDetectorServer
|
Loading…
x
Reference in New Issue
Block a user