[LUAU] rrsmpcd
Glen Nakamura
glen at vertical.dyn.ml.org
Wed Dec 2 00:37:43 PST 1998
Aloha Max,
"/local/rrsmpcd -k" signals rrsmpcd to kill the running process but will
return BEFORE the process actually dies. You may want to wait a second
or two before starting rrsmpcd again and check if /var/run/rrsmpcd.pid
is deleted.
e.g.
#!/bin/sh
/local/rrsmpcd -k
sleep 2
if [ -f /var/run/rrsmpcd.pid ]; then
kill -9 `cat /var/run/rrsmpcd.pid`
fi
/local/rrsmpcd
FYI: Development versions of rrsmpcd currently attempt logins every two
hours (without cron) since I have not been able to verify that the
client
status request code is working properly.
- glen
David and Max wrote:
>
> Just downloaded rrsmpcd, but found that it does not work the way I expected
> it to work.
>
> Because I'm suffering from the long known "Has-to-relog-every-2-hrs"
> disease, I used crontab to relog every 2 hrs. But when I switch to
> rrsmpcd, I have to "kill" rrsmpcd by "rrsmpcd -k" first and then rrsmpcd
> again. So I decided to use a simple script to do that:
>
> #!/bin/sh
>
> /local/rrsmpcd -k
> /local/rrsmpcd
>
> But I got this error message:
>
> Error: rrsmpcd is already running!
> Use rrsmpcd -k to kill it.
>
> I don't know why it gave me this message. In my script, the first thing I
> do is kill rrsmpcd, and then rrsmpcd again. how come it still gave me this
> message? rrsmpcd should have died first before I started it again. So I
> should not be getting this message, but how come?
>
> please help.
>
> -Max
More information about the LUAU
mailing list