User Tools

Site Tools


skeleton-daemon.sh

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
skeleton-daemon.sh [2025/07/20 08:53] – old revision restored (2023/12/21 08:03) 114.119.135.136skeleton-daemon.sh [2025/07/20 17:59] (current) – old revision restored (2023/11/30 14:48) 114.119.142.20
Line 1: Line 1:
-#https://gist.github.com/shawnrice/11076762#file-skeleton-daemon-sh 
  
 #!/bin/sh #!/bin/sh
Line 6: Line 5:
 # daemonName variable and then enter in the commands to run in the doCommands # daemonName variable and then enter in the commands to run in the doCommands
 # function. Modify the variables just below to fit your preference. # function. Modify the variables just below to fit your preference.
- 
 daemonName="DAEMON-NAME" daemonName="DAEMON-NAME"
- 
 pidDir="." pidDir="."
- 
 pidFile="$pidDir/$daemonName.pid" pidFile="$pidDir/$daemonName.pid"
- 
 pidFile="$daemonName.pid" pidFile="$daemonName.pid"
- 
 logDir="." logDir="."
- 
 # To use a dated log file. # To use a dated log file.
 # logFile="$logDir/$daemonName-"`date +"%Y-%m-%d"`".log" # logFile="$logDir/$daemonName-"`date +"%Y-%m-%d"`".log"
skeleton-daemon.sh.1753001614.txt.gz · Last modified: by 114.119.135.136

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki