Sometimes I need to kill java
Frank Murphy
frankly3d at gmail.com
Fri Oct 11 11:40:23 UTC 2013
On Fri, 11 Oct 2013 12:30:25 +0100
Ian Malone <ibmalone at gmail.com> wrote:
> On 11 October 2013 12:10, Frank Murphy <frankly3d at gmail.com> wrote:
> For example:
> journalctl | grep azureus | grep "ERROR: unable to bind" > /dev/null
> && killall -SIGHUP java
Thanks Ian,
>
> More elegant to be able to detect this failure at the attempt to
> start the azureus client, do the kill and then retry the start
> (while checking for loops). But that mightn't be possible depending
> on how it reacts to your attempt to restart it.
>
That could work as a script in "ExecStartPre=/above example as script"
Will give it a spin.
--
Regards,
Frank
www.frankly3d.com
More information about the users
mailing list