reverting soem changes

This commit is contained in:
maliakal_d 2021-09-28 15:41:57 +02:00
parent 6ae48d0f3a
commit fd03bfa65e
3 changed files with 47 additions and 163 deletions

View File

@ -62,7 +62,6 @@ Welcome to slsDetectorPackage's documentation!
:maxdepth: 2
servers
serverbackground
serverupgrade
virtualserver
serverdefaults

View File

@ -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

View File

@ -41,15 +41,17 @@ Automatic start
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
ln -sf someDetectorServervx.x.x someDetectorServer
Then, do the following depending on the detector type.
Eiger
#. Do the following depending on the detector type :
Eiger
.. code-block:: bash
# create script in rc5.d on the board
@ -60,23 +62,34 @@ Eiger
/home/root/executables/eigerDetectorServer &> /dev/null &
exit 0
Jungfrau | Moench | CTB | Gotthard I
Jungfrau | Moench | CTB | Gotthard I
.. code-block:: bash
# Edit inittab on board
vi /etc/inittab
# enter the following line
ttyS0::respawn:/./jungfrauDetectorServer
ttyS0::respawn:/./xxxDetectorServer
Gotthard II | Mythen III
Gotthard II | Mythen III
.. code-block:: bash
# create script in init.d on the board
# create script in init.d on board
vi /etc/init.d/S99detServer.sh
# enter the following (edit server name)
#! /bin/sh
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