Update install.sh

merge-requests/1/head
RaspbianProyect by HP3ICC 3 years ago
parent fc5d6b4038
commit 6ab6e8ff83

@ -716,15 +716,17 @@ Description= Proxy Service
After=multi-user.target After=multi-user.target
[Service] [Service]
User=root #User=root
Type=simple #Type=simple
Restart=always #Restart=always
RestartSec=3 #RestartSec=3
StandardOutput=null #StandardOutput=null
ExecStart=/usr/bin/python3 /opt/FreeDMR/hotspot_proxy_v2.py -c /opt/FreeDMR/proxy.cfg ExecStart=/usr/bin/python3 /opt/FreeDMR/hotspot_proxy_v2.py -c /opt/FreeDMR/proxy.cfg
Restart=on-failure
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
######### #########
bash -c "$(curl -fsSL https://raw.githubusercontent.com/hp3icc/D-APRS/main/emq-daprs.sh)" bash -c "$(curl -fsSL https://raw.githubusercontent.com/hp3icc/D-APRS/main/emq-daprs.sh)"
@ -735,15 +737,17 @@ Description=FreeDmr
After=multi-user.target After=multi-user.target
[Service] [Service]
User=root #User=root
Type=simple #Type=simple
Restart=always #Restart=always
RestartSec=3 #RestartSec=3
StandardOutput=null #StandardOutput=null
ExecStart=/usr/bin/python3 /opt/FreeDMR/bridge_master.py -c /opt/FreeDMR/config/FreeDMR.cfg -r /opt/FreeDMR/config/rules.py ExecStart=/usr/bin/python3 /opt/FreeDMR/bridge_master.py -c /opt/FreeDMR/config/FreeDMR.cfg -r /opt/FreeDMR/config/rules.py
Restart=on-failure
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
### ###
sudo cat > /lib/systemd/system/fdmrparrot.service <<- "EOF" sudo cat > /lib/systemd/system/fdmrparrot.service <<- "EOF"
@ -753,14 +757,16 @@ After=network-online.target syslog.target
Wants=network-online.target Wants=network-online.target
[Service] [Service]
StandardOutput=null #StandardOutput=null
WorkingDirectory=/opt/FreeDMR WorkingDirectory=/opt/FreeDMR
RestartSec=3 #RestartSec=3
ExecStart=/usr/bin/python3 /opt/FreeDMR/playback.py -c /opt/FreeDMR/playback.cfg ExecStart=/usr/bin/python3 /opt/FreeDMR/playback.py -c /opt/FreeDMR/playback.cfg
Restart=on-abort #Restart=on-abort
Restart=on-failure
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
# #
cat > /lib/systemd/system/http.server-fdmr.service <<- "EOF" cat > /lib/systemd/system/http.server-fdmr.service <<- "EOF"
@ -769,13 +775,15 @@ Description=PHP http.server.fdmr
After=network.target After=network.target
[Service] [Service]
User=root #User=root
#ExecStartPre=/bin/sleep 30 #ExecStartPre=/bin/sleep 30
# Modify for different other port # Modify for different other port
ExecStart=php -S 0.0.0.0:80 -t /var/www/fdmr/ ExecStart=php -S 0.0.0.0:80 -t /var/www/fdmr/
Restart=on-failure
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
# #
cat > /lib/systemd/system/fdmr_mon.service <<- "EOF" cat > /lib/systemd/system/fdmr_mon.service <<- "EOF"
@ -787,17 +795,20 @@ Description=FDMR Monitor
#Wants=network-online.target #Wants=network-online.target
[Service] [Service]
User=root #User=root
Type=simple #Type=simple
Restart=always #Restart=always
RestartSec=3 #RestartSec=3
StandardOutput=null #StandardOutput=null
WorkingDirectory=/opt/FDMR-Monitor WorkingDirectory=/opt/FDMR-Monitor
ExecStart=python3 /opt/FDMR-Monitor/monitor.py ExecStart=python3 /opt/FDMR-Monitor/monitor.py
Restart=on-abort #Restart=on-abort
Restart=on-failure
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
# #
sudo cat > /bin/menu-fdmr <<- "EOF" sudo cat > /bin/menu-fdmr <<- "EOF"

Loading…
Cancel
Save

Powered by TurnKey Linux.