Font size:
Process management
DRAFT: May need corrections!
Process management via shellutil
process lookup
<command name="process-lookup" description="lookup a process"
command-type="AntCommand" is-static="true">
<implementation>
<controller>
<execute>
<context depot="${context.depot}"/>
<command name="ps" module="shellutil"/>
<arg line="-pname ${opts.pname} -output ${opts.dest}"/>
</execute>
</controller>
</implementation>
</command>
process kill
<command name="kill-process" description="stop a process"
command-type="AntCommand" is-static="true">
<implementation>
<controller>
<execute>
<context depot="${context.depot}"/>
<command name="pkill" module="shellutil"/>
<arg line="-pname ${opts.pname}"/>
</execute>
</controller>
</implementation>
</command>
process start
<command name="process-start" description="star a process"
command-type="AntCommand" is-static="true">
<implementation>
<controller>
<execute>
<context depot="${context.depot}"/>
<command name="exec" module="shellutil"/>
<arg line="-executable ${opts.file} -daemon"/>
</execute>
</controller>
</implementation>
</command>



