Code: Select all
// do we need to connect to syslog?
if( strcmp( vdev.config->logfile_path, "syslog" ) == 0 ) {
vdev_debug("%s", "Switching to syslog for messages\n");
vdev_enable_syslog();
}
Code: Select all
// turn on syslog logging
// always succeeds
int vdev_enable_syslog() {
_VDEV_SYSLOG = 1;
openlog( VDEV_SYSLOG_IDENT, LOG_CONS | LOG_NDELAY | LOG_PID, LOG_DAEMON );
return 0;
}
Code: Select all
logger -u /dev/log HELLO
obarun wrote:same though for me, i saw thoses files and checked (well i try lol), this is the reason asking you if i do wrong or if it's doesn't work
Code: Select all
00097:00007FE89BA0B700: [ os/linux.c:0188] vdev_linux_log_uevent: DEBUG: uevent 'ACTION=add'
00097:00007FE89BA0B700: [ os/linux.c:0188] vdev_linux_log_uevent: DEBUG: uevent 'DEVPATH=/devices/virtual/dmi/id'
00097:00007FE89BA0B700: [ os/linux.c:0448] vdev_linux_parse_request: DEBUG: subsystem = 'dmi', have_major=0, major = 0, have_minor=0, minor = 0, mode = 0
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/uncore_imc/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/uncore_imc/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/tracepoint/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/tracepoint/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/node/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/node/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/node/node0/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/node/node0/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory9/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory9/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory8/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory8/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory7/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory7/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory67/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory67/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory66/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory66/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory65/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory65/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory64/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory64/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory63/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory63/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory62/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory62/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory61/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory61/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory60/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory60/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory6/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory6/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory59/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory59/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory58/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory58/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory57/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory57/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory56/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory56/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory55/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory55/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory54/uevent'
00097:00007FE89BA0B700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory54/uevent'
00097:00007FE89BA0B700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory
Code: Select all
32634:00007F4CFCBE6700: [ os/linux.c:1174] vdev_linux_sysfs_register_devices: DEBUG: Register device '/sys/devices/system/memory/memory0/uevent'
32634:00007F4CFCBE6700: [ os/linux.c:0832] vdev_linux_sysfs_register_device: DEBUG: Empty uevent file at '/sys/devices/system/memory/memory0/uevent'
obarun wrote:hello,
it take to much time to make a change . Difficult to work in this condition .
So if you are interested i created a little scripts to create a service for runit, you can find more info here http://obarun.org/forum/viewtopic.php?pid=184#p184
obarun-server turn. that is a very good new but implemented vdev on it's seem not be a good idea, some much time to resolve problems. for obarun too.
Users browsing this forum: No registered users and 14 guests