So, the most important question to answer is, Why was his rc.updatenodelist not running / working?
Any ideas so that we can learn from this issue.
···
From: George Csahanin via AllStarLink Discussion Groups [mailto:noreply@community.allstarlink.org]
Sent: Friday, October 09, 2020 10:35 AM
To: ke6pcv@cal-net.org
Subject: [AllStarLink Discussion Groups] [App_rpt-users] Cannot connect to only certain nodes but the allstar boxes can see each other
|
George_Csahanin
October 9
|
See my last post. We figured it out. His rc.updatenodelist wasn’t running so he didn;t get my new (as of Sunday) IP address. My Inet connection was down a day due to a cable cut and when re-established I got a new IP address
GeorgeC
Visit Topic or reply to this email to respond.
In Reply To
|
jfall
October 9
|
Hi There, Probably easy answer. You can’t get into W8VT’s hub node in NJ 43015. That is because he probably is using a firewall to screen unknown IP’s. So ring him up or email him and tell him you got a new IP address. Because DNCP on your ISP gave you a new one. Problem solved.
Previous Replies
|
jfall
October 9
|
Hi There,
Probably easy answer. You can’t get into W8VT’s hub node in NJ 43015.
That is because he probably is using a firewall to screen unknown IP’s.
So ring him up or email him and tell him you got a new IP address.
Because DNCP on your ISP gave you a new one.
Problem solved.
|
wd6awp ASL Admin
October 7
|
I’ve run into this also, and I find the updatenodelist dies at times, but I thought I was the only one
Do systemctl enable updatenodelist
to enable it on server boot.
Here are other useful systemd commands:
systemctl start updatenodelist
systemctl restart updatenodelist
systemctl status updatenodelist
systemctl stop updatenodelist
systemctl is-active --quite updatenodelist
That last command is useful in a script. For example I rewrote astup.sh, astdn.sh and asters.sh to use it.
#!/bin/bash
# N4IRS 07/26/2017
# WD6AWP 09/09/2020
systemctl is-active --quiet asterisk.service
err=$?
if [ $err -eq 0 ]; then
echo "Asterisk is currently running!"
else
echo "Starting asterisk..."
systemctl start asterisk.service
fi
You use that (or write a similar script) and call it with cron to start it once a day if dead.
BTW, here’s the service file if you need it. Put this in the directory with filename shown then do a systemctl daemond-reload
.
#/lib/systemd/system/updatenodelist.service
[Unit]
Description=AllStar NodeList updater
Wants=network.target
After=network-online.target
BindsTo=asterisk.service
[Service]
Type=simple
StandardOutput=null
ExecStart=/usr/bin/rc.updatenodelist &
ExecStop=/usr/bin/killall -9 rc.updatenodelist
# safe_emulation
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
|
George_Csahanin
October 7
|
I think I just found the problem. in /lib/systemd/system there is a file “updatenodelist.service”
Contents:
root@repeater:/lib/systemd/system# more updatenodelist.service
#/usr/lib/systemd/system/updatenodelist.service
[Unit]
Description=AllStar NodeList updater
Wants=network.target
After=network-online.target
BindsTo=asterisk.service
[Service]
Type=simple
StandardOutput=null
ExecStart=/usr/local/bin/rc.updatenodelist &
ExecStop=/usr/bin/killall -9 rc.updatenodelist
safe_emulation
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
root@repeater:/lib/systemd/system#
So not sure why it wasn’t starting unless network.target is an issue somehow
I have a hard time wrapping my head around systemd. Used only Slackware Linux since pre-version 1 back to 1994. Much easier to understand.
GeorgeC W2DB
|
George_Csahanin
October 7
|
Problem…here’s the /usr/lib/systemd directory:
root@repeater:/usr/lib/systemd# ll
total 28
drwxr-xr-x 7 root 4096 Feb 26 2020 .
drwxr-xr-x 70 root 4096 May 17 18:28 …
drwxr-xr-x 3 root 4096 Feb 26 2020 boot
drwxr-xr-x 2 root 4096 Feb 26 2020 catalog
drwxr-xr-x 2 root 4096 Jul 5 2017 network
drwxr-xr-x 4 root 4096 Mar 2 2020 user
drwxr-xr-x 2 root 4096 Jul 5 2017 user-generators
root@repeater:/usr/lib/systemd#
Just found it in /lib/systemd/system. Here’s what’s inside:
root@repeater:/lib/systemd/system# more asterisk.service
#/usr/lib/systemd/system/asterisk.service
[Unit]
Description=Asterisk PBX and telephony daemon
Documentation=man:asterisk(8)
Wants=network.target
After=network-online.target
BindsTo=dev-dahdi-pseudo.device
Below requires a addition to udev rules# See /etc/udev/rules.d/dahdi.rules
After=dev-dahdi-pseudo.device
[Service]
Type=simple
StandardOutput=null
ExecStart=/usr/sbin/asterisk -g -f -C /etc/asterisk/asterisk.conf
ExecStop=/usr/sbin/asterisk -rx ‘stop now’
ExecReload=/usr/sbin/asterisk -rx ‘module reload’
safe_asterisk emulation
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
root@repeater:/lib/systemd/system#
GeorgeC
|
Tom
October 7
|
George,
It runs as a systemd service (daemon). Look in /usr/lib/systemd/system/asterisk.service to see how it is defined.
Tom
··· (click for more details)
Visit Topic or reply to this email to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, click here.