Advertisement
Guest User

Untitled

a guest
May 22nd, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. Content of . /etc/default/VSP :
  2.  
  3.  
  4. VSP_HOME=/opt/VSP
  5. export VSP_HOME
  6.  
  7. #######################################################
  8. author "Johny bravo"
  9. description "Johny bravo script"
  10.  
  11.  
  12. pre-start script
  13. # stop job from continuing if no config file found for daemon
  14. [ ! -f /etc/default/VSP ] && { stop; exit 0; }
  15. # source the config file
  16. . /etc/default/VSP
  17. # this works
  18. echo $VSP_HOME >> /tmp/myjob.log  
  19. end script
  20.  
  21.  
  22. script
  23.  
  24. # this is not working
  25. echo $VSP_HOME >> /tmp/myjob.log
  26.  
  27. end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement