[Mono-dev] mono-service process name

Eric Moret eric.moret at gmail.com
Thu Jun 5 13:51:29 EDT 2008


"Jonathan Pryor" <jonpryor at vt.edu> wrote in message news:1212678038.5169.83.camel at lina.magi.balthasar.com...
> On Mon, 2008-06-02 at 11:08 -0700, Eric Moret wrote:
>> This is a patch against mono svn trunk 104692. This adds option
>> -a:<procname> to mono-service so the process name can be changed.
>
> Silly question, but why "-a"?  I'm trying to think of what mnemonic this
> is supposed to mimic...

It uses the same option name as that of exec (exec -a). I have to admit I don't know what it stands for. That said, this patch is 
what was documented by Aaron B. applied to the mono-service facility. Since Aaron documented exec -a, I felt it would be more 
consistent to reuse the same option letter for mono-service.

http://abock.org/2006/02/09/changing-process-name-in-mono/

> Furthermore, wouldn't it make sense to "reuse" the -n value as the
> process name instead of adding a new -a flag?

mono-service -m:MESSAGE is used to define a name for the syslog facility
mono-service -n:NAME is used to pick one of the services defined in the binary exe file if there is more than one.

Adding mono-service -a allows for greater flexibility than reusing one of the above options since it does not change current 
behaviour. Some people might be "just fine" with a process name of "mono".

__
Eric 





More information about the Mono-devel-list mailing list