Difference between revisions of "Linux Restart Services"

From Observer GigaFlow Support | VIAVI Solutions Inc.
Jump to: navigation, search
(Created page with " [Unit] Description=VIAVI Observer GigaFlow [Service] WorkingDirectory=/opt/ros User=gigaflow Type=simple Restart=on-failure RestartSec=10 ExecStart=/opt/java/bin/jav...")
 
 
Line 1: Line 1:
 +
 +
  
 
  [Unit]
 
  [Unit]

Latest revision as of 14:56, 18 February 2022


[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