Linux Restart Services
From Observer GigaFlow Support | VIAVI Solutions Inc.
[Unit] Description=VIAVI Observer GigaFlow [Service] WorkingDirectory=/opt/ros User=gigaflow Type=simple Restart=on-failure RestartSec=10 ExecStart=/opt/java/bin/java -Xms364M -Xmx16000M -Djava.net.preferIPv4Stack=true -Djava.library.path=./dist/lib/ -Djava.awt.headless=true -XX:+CrashOnOutOfMemoryError -classpath ./dist/ROS.jar:./dist/lib/* ros.ROS ExecStop=/bin/kill -15 $MAINPID [Install] WantedBy=multi-user.target