Advertisement
kpfp_linux

Untitled

Dec 13th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # PROVIDE: yesod_red
  4. # REQUIRE: DAEMON
  5. # KEYWORD: nojail shutdown
  6.  
  7. . /etc/rc.subr
  8.  
  9. name="yesod_red"
  10. rcvar="${name}_enable"
  11. command="bin/red"
  12. pidfile="/var/run/${name}.pid"
  13. start_cmd="${name}_start"
  14.  
  15. load_rc_config $name
  16. : ${yesod_red_enable:=NO}
  17. : ${yesod_red_root:=/usr/local/www/red}
  18.  
  19. required_dirs="${yesod_red_root}/config ${yesod_red_root}/static"
  20.  
  21. yesod_red_start() {
  22.     cd "${yesod_red_root}"
  23.     /usr/sbin/daemon -f -p ${pidfile} bin/red
  24. }
  25.  
  26. run_rc_command "$1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement