3
2
In Upstart script I can use chdir
stanza to set the working directory. Also I can just execute a normal cd
command inside my script
section.
What is the difference between this two approaches? When and why I should use each of them?
3
2
In Upstart script I can use chdir
stanza to set the working directory. Also I can just execute a normal cd
command inside my script
section.
What is the difference between this two approaches? When and why I should use each of them?
4
In Upstart, you can have more than just one type of script. For example you can have pre/post start and pre/post stop scripts as well. The chdir
stanza sets a default directory for ALL scripts. The cd
command will only change the working directory within the scope of the current script.
Sounds good. That's all? – vbo – 2014-01-21T22:20:15.597
That's all I know of. I'm fairly new to Upstart myself. Maybe someone else knows more. – Brian.D.Myers – 2014-01-21T22:21:22.030