Update dmrgw.sh

This commit is contained in:
RaspbianProyect by HP3ICC 2023-06-06 17:47:34 +00:00
parent 0b359487c1
commit d84193fa01
1 changed files with 10 additions and 8 deletions

View File

@ -17,16 +17,18 @@ Description=DMRGateway Service
After=syslog.target network.target
[Service]
User=root
Type=simple
Restart=always
RestartSec=3
StandardOutput=null
#User=root
#Type=simple
#Restart=always
#RestartSec=3
#StandardOutput=null
WorkingDirectory=/opt/DMRGateway
ExecStartPre=/bin/sleep 15
#ExecStartPre=/bin/sleep 15
ExecStart=/usr/local/bin/DMRGateway /opt/DMRGateway/DMRGateway.ini
ExecStop=/usr/bin/screen -S DMRGateway -X quit
Restart=on-failure
#ExecStop=/usr/bin/screen -S DMRGateway -X quit
[Install]
WantedBy=multi-user.target