Site Tools


linux:scripts:scriptstarter

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
linux:scripts:scriptstarter [2014/06/05 15:26] lunetikklinux:scripts:scriptstarter [2018/12/20 17:40] (current) – Discussion status changed lunetikk
Line 1: Line 1:
 ===== Startscript ===== ===== Startscript =====
  
-This script can be used to start and stop your script from anyfolder when it is placed in "/etc/init.d/".+This script can be used to start and stop your script from any folder when it is placed in "/etc/init.d/".
 Start with: Start with:
 <code>service scriptstarter.sh start</code> <code>service scriptstarter.sh start</code>
  
-<code sh scriptstarter.sh>+<code bash scriptstarter.sh>
 #!/bin/bash #!/bin/bash
  
Line 35: Line 35:
 </code> </code>
  
 +===== Troubleshooting =====
 +
 +==== Integer error ====
 +
 +Reason:\\
 +Ubuntu says that it cant compare because your variable isnt integer. 
 +\\
 +\\
 +Fix:\\
 +Use == instead of -eq
 +
 +\\
 +\\
 +~~DISCUSSION:closed~~
linux/scripts/scriptstarter.1401974804.txt.gz · Last modified: 2017/03/01 12:50 (external edit)