User Tools

Site Tools


rocrail-linux-user-en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rocrail-linux-user-en [2020/10/08 18:11] – [Start script] rjversluisrocrail-linux-user-en [2022/02/28 19:09] (current) smitt48
Line 17: Line 17:
  \\  \\
 =====Start script===== =====Start script=====
 +The provided ''[[#provided_startrocrailsh|~/Rocrail/startrocrail.sh]]'' can also be used instead of writing your own.\\
 +This provided version supports also functions of the __**[[:servermonitor-en|Server Monitor]]**__.\\
 +==== A start script from scratch ===
 Create a start script, **startrocrail.sh** in the home directory of user **pi** by opening an editor like **vi startrocrail.sh**: Create a start script, **startrocrail.sh** in the home directory of user **pi** by opening an editor like **vi startrocrail.sh**:
 <code bash> <code bash>
 #!/bin/sh #!/bin/sh
-cd /home/pi/rocrail+cd /home/pi/Rocrail
 /home/pi/Rocrail/bin/rocrail -l /home/pi/Rocrail/bin /home/pi/Rocrail/bin/rocrail -l /home/pi/Rocrail/bin
 </code> </code>
Line 76: Line 79:
  
 ====Monitor==== ====Monitor====
-  * __**[[:servermonitor|Shutdown]]**__+  * __**[[:servermonitor-en|Shutdown]]**__
  
 ====SSH Shell==== ====SSH Shell====
Line 82: Line 85:
 killall rocrail killall rocrail
 </code> </code>
 +
 + \\
 +=====Provided startrocrail.sh =====
 +<code bash>
 +#!/bin/sh
 +WS=$1
 +PASSWORD=$2
 +cd
 +if [ !  $1 ]; then
 +  cd ~/Rocrail/default
 +else 
 +  cd ~/Rocrail/$WS
 +fi
 +~/Rocrail/bin/rocrail -l ~/Rocrail/bin
 +if [ $? -eq 70 ]
 +then
 +  echo $PASSWORD | sudo -S halt -p
 +fi
 +
 +</code>
 +
 +
 +
rocrail-linux-user-en.1602173504.txt.gz · Last modified: 2020/10/08 18:11 by rjversluis