Re: daemontools: nice value in a run script

Robin Bowes <[email protected]> Sun, 31 Oct 2010 17:31:53 +0000
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
On 31/10/10 17:06, philippe wrote:
> hello daemontools users,
> 
> I would like to use daemontools for watching services under soft real
> time (audio) constraints, how do I write a run script with a nice -10
> prepended:
> 
> kindalike:
> 
> --8<--
> #!/bin/sh
> nice -10 whatever_jack_client_needing_prio_scheduling arg1 arg2 arg3 ...
> --8<--
> 
> would need some kind of niceminus10andexec tool :-) or is there a way
> without writing it.
> 
> I'm on OSX.

What's wrong with just that, ie.

#!/bin/sh
exec 2>&1
exec nice -10 your_client arg1 arg2 arg3 ...

R.
-- 
"Feed that ego and you starve the soul" - Colonel J.D. Wilkes
http://www.theshackshakers.com/