/usr/local/etc/rc.d and role accounts

2006-04-14 Thread Mike Hunter
Hi, I'm hoping to get into the spirit of the new rc.d script specs (REQUIRES, PROVIDES, command=, etc) on a new server I'm building. The old script I was using looked like this: /usr/local/etc/rc.d/start-all-foo.sh [ -x /usr/local/bin/foo ] && su foo-role -c "/usr/local/bin/foo bar" [ -x /usr/l

Re: /usr/local/etc/rc.d and role accounts

2006-04-14 Thread Andrey V. Semyonov
Andrey V. Semyonov wrote: The most terrible thing is than you can't extract a value from a variable, which you name by some dynamic sting (you can't extract a variable by name set in other variable partly or the whole) Sorry, I'm too hurry. if ! /bin/test -z $(eval echo \$${name}${common_var

Re: /usr/local/etc/rc.d and role accounts

2006-04-14 Thread Andrey V. Semyonov
Mike Hunter wrote: Hi, I'm hoping to get into the spirit of the new rc.d script specs (REQUIRES, PROVIDES, command=, etc) on a new server I'm building. The old script I was using looked like this: I have several questions about how to replicate this behavior. I'm still deciding whether I'm wi

/usr/local/etc/rc.d and role accounts

2006-04-13 Thread Mike Hunter
Hi, I'm hoping to get into the spirit of the new rc.d script specs (REQUIRES, PROVIDES, command=, etc) on a new server I'm building. The old script I was using looked like this: /usr/local/etc/rc.d/start-all-foo.sh [ -x /usr/local/bin/foo ] && su foo-role -c "/usr/local/bin/foo bar" [ -x /usr/l