Create test.sh

This commit is contained in:
hp3icc 2021-12-29 08:34:11 -05:00 committed by GitHub
parent 7e8f89bd3e
commit ff3b5f2135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

20
service/test.sh Normal file
View File

@ -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