|
|
|
|
@ -716,15 +716,17 @@ Description= Proxy Service
|
|
|
|
|
After=multi-user.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
User=root
|
|
|
|
|
Type=simple
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=3
|
|
|
|
|
StandardOutput=null
|
|
|
|
|
#User=root
|
|
|
|
|
#Type=simple
|
|
|
|
|
#Restart=always
|
|
|
|
|
#RestartSec=3
|
|
|
|
|
#StandardOutput=null
|
|
|
|
|
ExecStart=/usr/bin/python3 /opt/FreeDMR/hotspot_proxy_v2.py -c /opt/FreeDMR/proxy.cfg
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
#########
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
User=root
|
|
|
|
|
Type=simple
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=3
|
|
|
|
|
StandardOutput=null
|
|
|
|
|
#User=root
|
|
|
|
|
#Type=simple
|
|
|
|
|
#Restart=always
|
|
|
|
|
#RestartSec=3
|
|
|
|
|
#StandardOutput=null
|
|
|
|
|
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]
|
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
###
|
|
|
|
|
sudo cat > /lib/systemd/system/fdmrparrot.service <<- "EOF"
|
|
|
|
|
@ -753,14 +757,16 @@ After=network-online.target syslog.target
|
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
StandardOutput=null
|
|
|
|
|
#StandardOutput=null
|
|
|
|
|
WorkingDirectory=/opt/FreeDMR
|
|
|
|
|
RestartSec=3
|
|
|
|
|
#RestartSec=3
|
|
|
|
|
ExecStart=/usr/bin/python3 /opt/FreeDMR/playback.py -c /opt/FreeDMR/playback.cfg
|
|
|
|
|
Restart=on-abort
|
|
|
|
|
#Restart=on-abort
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
#
|
|
|
|
|
cat > /lib/systemd/system/http.server-fdmr.service <<- "EOF"
|
|
|
|
|
@ -769,13 +775,15 @@ Description=PHP http.server.fdmr
|
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
User=root
|
|
|
|
|
#User=root
|
|
|
|
|
#ExecStartPre=/bin/sleep 30
|
|
|
|
|
# Modify for different other port
|
|
|
|
|
ExecStart=php -S 0.0.0.0:80 -t /var/www/fdmr/
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
#
|
|
|
|
|
cat > /lib/systemd/system/fdmr_mon.service <<- "EOF"
|
|
|
|
|
@ -787,17 +795,20 @@ Description=FDMR Monitor
|
|
|
|
|
#Wants=network-online.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
User=root
|
|
|
|
|
Type=simple
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=3
|
|
|
|
|
StandardOutput=null
|
|
|
|
|
#User=root
|
|
|
|
|
#Type=simple
|
|
|
|
|
#Restart=always
|
|
|
|
|
#RestartSec=3
|
|
|
|
|
#StandardOutput=null
|
|
|
|
|
WorkingDirectory=/opt/FDMR-Monitor
|
|
|
|
|
ExecStart=python3 /opt/FDMR-Monitor/monitor.py
|
|
|
|
|
Restart=on-abort
|
|
|
|
|
#Restart=on-abort
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
#
|
|
|
|
|
sudo cat > /bin/menu-fdmr <<- "EOF"
|
|
|
|
|
|