sash-kan писал(а): ↑01.05.2010 12:34
/var/log/
QWERTYASDF писал(а): ↑01.05.2010 11:56
Как это проверить?
для начала узнать, от чьего имени работает демон:
$ ps aux | less -p ups
пользователь — в первом столбце.
Вот /var/log/errors.log (не знаю, какие еще файлы смотреть)
Код: Выделить всё
Apr 30 12:09:55 localhost smartd[1501]: Problem creating device name scan list
Apr 30 12:10:15 localhost apcupsd[2413]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.
Apr 30 12:10:15 localhost apcupsd[2413]: apcupsd error shutdown completed
Apr 30 12:10:52 localhost nmbd[3059]: [2010/04/30 12:10:52, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
Apr 30 12:10:52 localhost nmbd[3059]: *****
Apr 30 12:10:52 localhost nmbd[3059]:
Apr 30 12:10:52 localhost nmbd[3059]: Samba name server LOCALHOST is now a local master browser for workgroup HOME on subnet 192.168.1.33
Apr 30 12:10:52 localhost nmbd[3059]:
Apr 30 12:10:52 localhost nmbd[3059]: *****
Apr 30 12:12:42 localhost nmbd[3059]: [2010/04/30 12:12:42, 0] nmbd/nmbd.c:71(terminate)
Apr 30 12:12:42 localhost nmbd[3059]: Got SIGTERM: going down...
Apr 30 12:12:43 localhost rpc.statd[2421]: Caught signal 15, un-registering and exiting.
Apr 30 12:12:44 localhost upsd[2849]: mainloop: Interrupted system call
Apr 30 12:12:44 localhost rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
Apr 30 12:21:11 localhost smartd[1425]: Problem creating device name scan list
Apr 30 12:21:29 localhost apcupsd[2195]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.
Apr 30 12:21:29 localhost apcupsd[2195]: apcupsd error shutdown completed
Apr 30 12:21:52 localhost nmbd[3440]: [2010/04/30 12:21:52, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
Apr 30 12:21:52 localhost nmbd[3440]: *****
Apr 30 12:21:52 localhost nmbd[3440]:
Apr 30 12:21:52 localhost nmbd[3440]: Samba name server LOCALHOST is now a local master browser for workgroup HOME on subnet 192.168.1.33
Apr 30 12:21:52 localhost nmbd[3440]:
Apr 30 12:21:52 localhost nmbd[3440]: *****
Apr 30 15:25:09 localhost kdm[892]: X server for display :0 terminated unexpectedly
Apr 30 18:16:36 localhost nmbd[3440]: [2010/04/30 18:16:36, 0] nmbd/nmbd.c:71(terminate)
Apr 30 18:16:36 localhost nmbd[3440]: Got SIGTERM: going down...
Apr 30 18:16:37 localhost rpc.statd[2192]: Caught signal 15, un-registering and exiting.
Apr 30 18:16:38 localhost rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
Apr 30 18:16:38 localhost upsd[3320]: mainloop: Interrupted system call
Apr 30 19:03:25 localhost smartd[1380]: Problem creating device name scan list
Apr 30 19:03:45 localhost apcupsd[2338]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.
Apr 30 19:03:45 localhost apcupsd[2338]: apcupsd error shutdown completed
Apr 30 19:04:15 localhost nmbd[2933]: [2010/04/30 19:04:14, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
Apr 30 19:04:15 localhost nmbd[2933]: *****
Apr 30 19:04:15 localhost nmbd[2933]:
Apr 30 19:04:15 localhost nmbd[2933]: Samba name server LOCALHOST is now a local master browser for workgroup HOME on subnet 192.168.1.33
Apr 30 19:04:15 localhost nmbd[2933]:
Apr 30 19:04:15 localhost nmbd[2933]: *****
Apr 30 22:01:07 localhost rpc.statd[2357]: Caught signal 15, un-registering and exiting.
Apr 30 22:01:08 localhost nmbd[2933]: [2010/04/30 22:01:08, 0] nmbd/nmbd.c:71(terminate)
Apr 30 22:01:08 localhost nmbd[2933]: Got SIGTERM: going down...
Apr 30 22:01:09 localhost rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
Apr 30 22:01:10 localhost upsd[2758]: mainloop: Interrupted system call
Apr 3Apr 30 12:09:55 localhost smartd[1501]: Problem creating device name scan list
Apr 30 12:10:15 localhost apcupsd[2413]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.
Apr 30 12:10:15 localhost apcupsd[2413]: apcupsd error shutdown completed
Apr 30 12:10:52 localhost nmbd[3059]: [2010/04/30 12:10:52, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
Apr 30 12:10:52 localhost nmbd[3059]: *****
Apr 30 12:10:52 localhost nmbd[3059]:
Apr 30 12:10:52 localhost nmbd[3059]: Samba name server LOCALHOST is now a local master browser for workgroup HOME on subnet 192.168.1.33
Apr 30 12:10:52 localhost nmbd[3059]:
Apr 30 12:10:52 localhost nmbd[3059]: *****
Apr 30 12:12:42 localhost nmbd[3059]: [2010/04/30 12:12:42, 0] nmbd/nmbd.c:71(terminate)
Apr 30 12:12:42 localhost nmbd[3059]: Got SIGTERM: going down...
Apr 30 12:12:43 localhost rpc.statd[2421]: Caught signal 15, un-registering and exiting.
Apr 30 12:12:44 localhost upsd[2849]: mainloop: Interrupted system call
Apr 30 12:12:44 localhost rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
Apr 30 12:21:11 localhost smartd[1425]: Problem creating device name scan list
Apr 30 12:21:29 localhost apcupsd[2195]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.
Apr 30 12:21:29 localhost apcupsd[2195]: apcupsd error shutdown completed
Apr 30 12:21:52 localhost nmbd[3440]: [2010/04/30 12:21:52, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
Apr 30 12:21:52 localhost nmbd[3440]: *****
Apr 30 12:21:52 localhost nmbd[3440]:
Apr 30 12:21:52 localhost nmbd[3440]: Samba name server LOCALHOST is now a local master browser for workgroup HOME on subnet 192.168.1.33
Apr 30 12:21:52 localhost nmbd[3440]:
Apr 30 12:21:52 localhost nmbd[3440]: *****
Apr 30 15:25:09 localhost kdm[892]: X server for display :0 terminated unexpectedly
Apr 30 18:16:36 localhost nmbd[3440]: [2010/04/30 18:16:36, 0] nmbd/nmbd.c:71(terminate)
Apr 30 18:16:36 localhost nmbd[3440]: Got SIGTERM: going down...
Apr 30 18:16:37 localhost rpc.statd[2192]: Caught signal 15, un-registering and exiting.
Apr 30 18:16:38 localhost rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
Apr 30 18:16:38 localhost upsd[3320]: mainloop: Interrupted system call
Apr 30 19:03:25 localhost smartd[1380]: Problem creating device name scan list
Apr 30 19:03:45 localhost apcupsd[2338]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.
Apr 30 19:03:45 localhost apcupsd[2338]: apcupsd error shutdown completed
Apr 30 19:04:15 localhost nmbd[2933]: [2010/04/30 19:04:14, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
Apr 30 19:04:15 localhost nmbd[2933]: *****
Apr 30 19:04:15 localhost nmbd[2933]:
Apr 30 19:04:15 localhost nmbd[2933]: Samba name server LOCALHOST is now a local master browser for workgroup HOME on subnet 192.168.1.33
Apr 30 19:04:15 localhost nmbd[2933]:
Apr 30 19:04:15 localhost nmbd[2933]: *****
Apr 30 22:01:07 localhost rpc.statd[2357]: Caught signal 15, un-registering and exiting.
Apr 30 22:01:08 localhost nmbd[2933]: [2010/04/30 22:01:08, 0] nmbd/nmbd.c:71(terminate)
Apr 30 22:01:08 localhost nmbd[2933]: Got SIGTERM: going down...
Apr 30 22:01:09 localhost rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
0 22:31:31 localhost smartd[1388]: Problem creating device name scan list
Apr 30 22:31:49 localhost apcupsd[2155]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.
Apr 30 22:31:49 localhost apcupsd[2155]: apcupsd error shutdown completed
Apr 30 22:32:12 localhost nmbd[3169]: [2010/04/30 22:32:12, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
Apr 30 22:32:12 localhost nmbd[3169]: *****
Apr 30 22:32:12 localhost nmbd[3169]:
Apr 30 22:32:12 localhost nmbd[3169]: Samba name server LOCALHOST is now a local master browser for workgroup HOME on subnet 192.168.1.33
Apr 30 22:32:12 localhost nmbd[3169]:
Apr 30 22:32:12 localhost nmbd[3169]: *****
Вот все, что имело совпадение по имене "ups"
Код: Выделить всё
ups 3046 0.0 0.0 1880 464 ? Ss Apr30 0:04 /sbin/megatec -a myups
ups 3054 0.0 0.0 3968 432 ? Ss Apr30 0:01 upsd -u ups