[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#251148: nsmon: FATAL Error while making lockfile.



Package: nsmon
Version: 2.3e-4
Followup-For: Bug #251148


Same problem here. I've attached strace to the nsmon procces and found the
problem:
- - -  output from strace  - - -
close(3)                                = 0
open("/var/lock/nsmon/192.168.111.200.gateway.lock", O_RDONLY) = -1 ENOENT (No such file or directory)
wait4(-1, NULL, 0, NULL)                = -1 ECHILD (No child processes)
rt_sigaction(SIGALRM, {0x804a320, [ALRM], SA_RESTART}, {0x804a320, [ALRM], SA_RESTART}, 8) = 0
alarm(60)                               = 0
sigreturn()                             = ? (mask now [])
nanosleep({60, 0},NULL)                = 0
--- SIGALRM (Alarm clock) @ 0 (0) ---
- - -  strace output end  - - -

My solution:
Create the diretory /var/lock/nsmon (if you have configured
'lock = /var/lock/nsmon' in /etc/nsmon.conf).

@Tibor Koleszar:
Please could you add a `mkdir /var/lock/nsmon` in the debian/postinst script, or
change the lock path in nsmon.conf to /var/lock?

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.1
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages nsmon depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an

nsmon recommends no packages.

-- no debconf information



Reply to: