Update p25gateway.service

This commit is contained in:
Esteban Mackay Q 2022-07-27 21:56:22 -05:00 committed by GitHub
parent 216a418057
commit 463c832109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 7 deletions

View File

@ -3,21 +3,17 @@ Description=P25 Gateway Service
# Description=Place this file in /lib/systemd/system
# Description=N4IRS 04/20/2018
#After=netcheck.service
#Requires=netcheck.service
[Service]
User=root
Type=simple
Restart=on-failure
RestartPreventExitStatus=SEGV
Restart=always
RestartSec=3
StandardOutput=null
WorkingDirectory=/opt/P25Gateway
#ExecStartPre = /bin/sh -c 'echo "Starting P25Gateway: [`date +%%T.%%3N`]" >> /var/log/netcheck'
ExecStartPre=/bin/sh -c 'until ping -c1 noip.com; do sleep 1; done;'
ExecStart=/opt/P25Gateway/P25Gateway /opt/P25Gateway/P25Gateway.ini
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
[Install]
WantedBy=multi-user.target