<exec executable="systemctl"> <arg value="restart"/> <arg value="myservice"/> <!-- replace with the service you want to restart --> </exec>
Programming Tips - Ant: use Apache Ant to restart a service
Date: 2014dec22
Product: ant
Language: xml
OS: Linux
Distro: RedHat/Fedora/CentOS
Q. Ant: use Apache Ant to restart a service
A. Use exec like this: