Allowing variables in stanzas
Bug #801023 reported by
Removed by request
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using Ubuntu 11.10 dev and upstart 0.9.7-3. I wanted to use a variable in chdir because it is used on some other places in the script too. For example the part looked so:
env DIRECTORY=/srv/test
chdir $DIRECTORY
But this wasn't allowed and the script failed. Maybe upstart could get the ability to use variables in stanzas so that we haven't to write the string more than one time.
To post a comment you must log in.
While directory specification might not be that important to me, setting max open files should allow reading system value.
For example if I set max open files in init script as:
MAXFILES=$(( `cat /proc/sys/ fs/file- max` / 2 ))
ulimit -n $MAXFILES
upstart version could allow something like:
limit nofile `$(( `cat /proc/sys/ fs/file- max` / 2 ))`
or variable that has been initialized before in env.