Sometimes I need to kill java

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



F20 but general question.

I test both upstream and Fedora Azureus (Vuze)
use openjdk for both.

I created an azvuze.service
to automate restarts (during the night)

Sometimes openjdk stays, sometimes crashes out.
If it stays, it prevents restart.
by either service file, manually typing # azureus.

How can I automate "killall -SIGHUP java",
only when azureus || vuze is refusing to start with:
journalctl | grep azureus
 StartSocket: passing startup args to already-running Azureus java
process listening on [127.0.0.1: NNNN]
azureus[2297]: StartServer ERROR: unable to bind to 127.0.0.1:NNNN
listening for passed torrent info: Address already in use



Both fedora-azureus and upstream-vuze
are similar but for paths

azvuze.service ============

# restart azureus
# 

[Unit]
Description=Vuze (Upstream) 
DefaultDependencies=no
Requires=lightdm.service
After=graphical.target


[Service]
User=makeyup
Type=forking
Restart=always
RestartSec=180
RemainAfterExit=no
TimeoutStartSec=0
Environment=DISPLAY=:0
# ExecStartPre=/usr/bin/killall -SIGHUP java ## not a good idea here.
ExecStartPre=/usr/local/scripts/ulimit
ExecStart=/home/makeyup/Upstream_Vuze/azureus

[Install]
WantedBy=graphical.target
========================

-- 
Regards,
Frank 
www.frankly3d.com

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux