From ff3b5f21357738eeaf16911b0bca7c62469f948b Mon Sep 17 00:00:00 2001 From: hp3icc <49044505+hp3icc@users.noreply.github.com> Date: Wed, 29 Dec 2021 08:34:11 -0500 Subject: [PATCH] Create test.sh --- service/test.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 service/test.sh diff --git a/service/test.sh b/service/test.sh new file mode 100644 index 0000000..d1a9680 --- /dev/null +++ b/service/test.sh @@ -0,0 +1,20 @@ +[Unit] +Description=MD-380 Emulator Service +# Description=Place this file in /lib/systemd/system +# Description=N4IRS 10/04/2020 + +[Service] +Type=simple +Restart=always +RestartSec=3 +StandardOutput=null +WorkingDirectory=/opt/md380-emu +#ExecStartPre = /bin/sh -c 'echo "Starting md380-emu: [`date +%%T.%%3N`]" >> /v> +ExecStartPre=/bin/sh -c 'until ping -c1 google.com; do sleep 1; done;' +ExecStart=/usr/bin/qemu-arm-static /opt/md380-emu/md380-emu -S 2470 +ExecReload=/bin/kill -HUP $MAINPID +KillMode=process + +[Install] + +WantedBy=multi-user.target