Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Apr 2002 21:56:14 +0300
From:      "Vladislav V. Zhuk" <admin@dru.dn.ua>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Problem with utmp (was: big troubles with WHO)
Message-ID:  <20020429185614.GA22187@dru.dn.ua>

next in thread | raw e-mail | index | archive | help
Re/Hi!

I investigated problem in detail (with log-files):

$ last -2 test
test             ttydl    :PPP             ?? 29 ??? 17:04 - 17:11  (00:07)
test             ttydk    :PPP             ?? 29 ??? 16:01 - 16:56  (00:55)
                                                     ^^^^^^^^^^^^^^^^^^^^^^

pppd.log:
Apr 29 16:01:03 dru pppd[422]: Using interface ppp12
Apr 29 16:01:03 dru pppd[422]: Connect: ppp12 <--> /dev/ttydk
Apr 29 16:01:06 dru pppd[422]: user test logged in
Apr 29 16:01:06 dru pppd[422]: local  IP address 195.58.224.122
Apr 29 16:01:06 dru pppd[422]: remote IP address 195.58.225.168
...
Apr 29 16:56:58 dru pppd[422]: LCP terminated by peer (QM-"CM-^V^@<M-Mt^@^@^@^@)
Apr 29 16:56:58 dru pppd[422]: Modem hangup, connected for 55 minutes
Apr 29 16:56:58 dru pppd[422]: Connection terminated, connected for 55 minutes
                                                                ^^^^^^^^^^^^^^
Apr 29 16:56:59 dru pppd[422]: Exit.


billing.log:
Apr 29 16:05:13 dru billingd[1171]: User "test" not in utmp.
       ^^^^^^^^
Apr 29 16:05:13 dru billingd[1171]: test elapsed_time=245s
                                         ^^^^^^^^^^^^^^^^

billing daemon start from ip-up and check for corresponding user in
utmp every 5 seconds (code for check I get from sources of who(1)).
I use this daemon 1.5 year without any problem.

Why utmp _lost_ record for user test??

PS: before last cvsup/makeworld this problem don't occur
(I make note of this trouble approximately 5 times for last 3 days)

Is there a bad wearher in Mars??

--
Vladislav V. Zhuk (06267)3-60-03  admin@dru.dn.ua  2:465/197@FidoNet.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020429185614.GA22187>