From fd03bfa65e600bcde14a3e815dce684c12e06051 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 28 Sep 2021 15:41:57 +0200 Subject: [PATCH] reverting soem changes --- docs/src/index.rst | 1 - docs/src/serverbackground.rst | 128 ---------------------------------- docs/src/servers.rst | 81 ++++++++++++--------- 3 files changed, 47 insertions(+), 163 deletions(-) delete mode 100644 docs/src/serverbackground.rst diff --git a/docs/src/index.rst b/docs/src/index.rst index 364f1acf9..65a3d6d8b 100644 --- a/docs/src/index.rst +++ b/docs/src/index.rst @@ -62,7 +62,6 @@ Welcome to slsDetectorPackage's documentation! :maxdepth: 2 servers - serverbackground serverupgrade virtualserver serverdefaults diff --git a/docs/src/serverbackground.rst b/docs/src/serverbackground.rst deleted file mode 100644 index 34f2af301..000000000 --- a/docs/src/serverbackground.rst +++ /dev/null @@ -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`. - - -Gotthard ---------- - -Check :ref:`Blackfin detector servers in background`. - - -Mythen3 -------- - -Check :ref:`Nios detector servers in background`. - - -Gotthard2 ----------- - -Check :ref:`Nios detector servers in background`. - - -Moench ------- - -Check :ref:`Blackfin detector servers in background`. - -Ctb ---- - -Check :ref:`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 diff --git a/docs/src/servers.rst b/docs/src/servers.rst index dd3284d26..94ed00b8d 100644 --- a/docs/src/servers.rst +++ b/docs/src/servers.rst @@ -41,42 +41,55 @@ 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. - .. code-block:: bash +#. 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. + ln -sf someDetectorServervx.x.x someDetectorServer -Eiger - .. code-block:: bash + +#. Do the following depending on the detector type : + + Eiger + .. code-block:: bash + + # create script in rc5.d on the board + vi /etc/rc5.d/S50board_com.sh + + # enter the following (edit server name) + #! /bin/sh + /home/root/executables/eigerDetectorServer &> /dev/null & + exit 0 + + Jungfrau | Moench | CTB | Gotthard I + .. code-block:: bash + + # Edit inittab on board + vi /etc/inittab + + # enter the following line + ttyS0::respawn:/./xxxDetectorServer + + + Gotthard II | Mythen III + .. code-block:: bash + + # 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/xxxDetectorServer >> /dev/null & + + +#. Sync, reboot and verify + : + .. code-block:: bash - # create script in rc5.d on the board - vi /etc/rc5.d/S50board_com.sh + sync + reboot - # enter the following (edit server name) - #! /bin/sh - /home/root/executables/eigerDetectorServer &> /dev/null & - exit 0 - -Jungfrau | Moench | CTB | Gotthard I - .. code-block:: bash - - # Edit inittab on board - vi /etc/inittab - - # enter the following line - ttyS0::respawn:/./jungfrauDetectorServer - - -Gotthard II | Mythen III - .. code-block:: bash - - # create script in init.d on the board - vi /etc/init.d/S99detServer.sh - - # enter the following (edit server name) - #! /bin/sh - cd /root >> /dev/null - /root/mythen3DetectorServer >> /dev/null & + # verify + ps -ef | grep xxxDetectorServer \ No newline at end of file