Created
          November 27, 2012 03:45 
        
      - 
      
 - 
        
Save andmarios/4152229 to your computer and use it in GitHub Desktop.  
    Gollum wiki init script for Gentoo Linux
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/sbin/runscript | |
| # Gollum init script for Gentoo Linux | |
| GOLLUM_BASE=/home/wiki/OurWiki | |
| GOLLUM_USER=wiki | |
| GOLLUM_USER_HOME=/home/wiki | |
| depend() { | |
| need net | |
| } | |
| start() { | |
| ebegin "Starting Gollum" | |
| start-stop-daemon --start \ | |
| --chdir "${GOLLUM_BASE}" \ | |
| --user "${GOLLUM_USER}" \ | |
| -m -p "${GOLLUM_USER_HOME}/gollum.pid" \ | |
| -b --exec gollum | |
| eend $? | |
| } | |
| stop() { | |
| ebegin "Stopping Gollum" | |
| start-stop-daemon --stop \ | |
| --chdir "${GOLLUM_BASE}" \ | |
| --user "${GOLLUM_USER}" \ | |
| -p "${GOLLUM_USER_HOME}/gollum.pid" | |
| eend $? | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment