Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Content of . /etc/default/VSP :
- VSP_HOME=/opt/VSP
- export VSP_HOME
- #######################################################
- author "Johny bravo"
- description "Johny bravo script"
- pre-start script
- # stop job from continuing if no config file found for daemon
- [ ! -f /etc/default/VSP ] && { stop; exit 0; }
- # source the config file
- . /etc/default/VSP
- # this works
- echo $VSP_HOME >> /tmp/myjob.log
- end script
- script
- # this is not working
- echo $VSP_HOME >> /tmp/myjob.log
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement