
Originally Posted by
Soapm
Thanks for responding... I thought the script first used pgrep to locate the PID's and kill any running portions of NCID before restarting it. That is why I made it a cron job to run each day. If it doesn't kill the PID's first then I guess there's no point it trying to have it run each day. I thought I had something like this running on my old S2DT but I guess I didn't.
You are correct if you are using a recient version of NCID. I assumed you were using an old version of the startncid script and then completely forgot about the newer version using pgrep. Here are the first few lines of the current version:
Code:
#!/bin/sh
# script to start NCID
# Requires the "pgrep" command
# Last modified by jlc: Mon Aug 30, 2010
If you are using a current version of startncid, then make sure it starts ncidd. It could be killing it and not restarting it. Look at the end of the /var/log/ncidd.log to see if it was killed and not restarted or if it got into trouble when restarting.
The problem I have is NCID will run a few days then a call will come and nothing shows on the screen. I can kill all the PID's and restart it and it will run a little while longer. I thought I could eliminate having to manually restart the app if I have it "refresh" itself each day.
The /var/hack/bin/initmodem shell script should be used as a cron job if you think the modem is a problem. It uses ncidd to reinitialize the modem. You can run it manually and then check ncidd.log to make sure it initialized the modem. It was last modified in 2010.