summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2007-06-18 13:35:47 +0000
committerjkar8572 <jkar8572>2007-06-18 13:35:47 +0000
commitbfc86b14707699dfd08bde0a5c957f6a69854978 (patch)
treee24f9dfdb0770658e0cc04806fc3f3b7b2f35f3c
parent1a9e48b4f8747e9aa7357631afc35c6a0cefdd6f (diff)
Updated changelog.
Added manpage for quota_nld.
-rw-r--r--Changelog2
-rw-r--r--quota_nld.832
-rw-r--r--quota_nld.c8
3 files changed, 38 insertions, 4 deletions
diff --git a/Changelog b/Changelog
index 00b7bab..1fc26d7 100644
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,6 @@
Changes in quota-tools from 3.14 to 3.15
+* implemented quota netlink daemon to listen to kernel netlink messages and send them
+ to DBUS and / or write them to the console (Jan Kara)
* modified configure scripts and warnquota to check for new LDAP library and allow use of URI (Jan Kara)
* fix LDAP scripts to set VISUAL instead of EDITOR (Michael Meskes)
* added ext4 filesystem to the list of supported filesystems (Jan Kara)
diff --git a/quota_nld.8 b/quota_nld.8
new file mode 100644
index 0000000..fd7e3d5
--- /dev/null
+++ b/quota_nld.8
@@ -0,0 +1,32 @@
+.TH RQUOTAD 8
+.SH NAME
+quota_nld \- quota netlink message daemon
+.SH SYNOPSIS
+.B quota_nld
+[
+.B \-DCn
+]
+.SH DESCRIPTION
+.BR quota_nld
+is a daemon that listens on netlink socket and processes received quota
+warnings. The daemon supports forwarding warning messages to the system's
+DBUS and writing them to the terminal user has last accessed.
+
+.SH OPTIONS
+.TP
+.B \-V, \-\-version
+Shows version of quota tools.
+.TP
+.B \-D, \-\-no-dbus
+Do not forward quota warnings to DBUS.
+.TP
+.B \-C, \-\-no-console
+Do not print quota warnings to the terminal.
+.TP
+.B \-F, \-\-foreground
+Run daemon in foreground (may be useful for debugging purposes).
+
+.SH "SEE ALSO"
+.BR quota (1),
+.BR netlink (7),
+.BR dbus.freedesktop.org
diff --git a/quota_nld.c b/quota_nld.c
index 827833c..e730f4d 100644
--- a/quota_nld.c
+++ b/quota_nld.c
@@ -41,7 +41,7 @@ static const struct option options[] = {
{ "help", 0, NULL, 'h' },
{ "no-dbus", 0, NULL, 'D' },
{ "no-console", 0, NULL, 'C' },
- { "no-daemon", 0, NULL, 'n' },
+ { "no-daemon", 0, NULL, 'F' },
{ NULL, 0, NULL, 0 }
};
@@ -95,14 +95,14 @@ void show_help(void)
-V --version shows version information\n\
-C --no-console do not try to write messages to console\n\
-D --no-dbus do not try to write messages to DBUS\n\
- -n --no-daemon do not detach from tty\n"), progname);
+ -F --foreground run daemon in foreground\n"), progname);
}
static void parse_options(int argc, char **argv)
{
int opt;
- while ((opt = getopt_long(argc, argv, "VhDCn", options, NULL)) >= 0) {
+ while ((opt = getopt_long(argc, argv, "VhDCF", options, NULL)) >= 0) {
switch (opt) {
case 'V':
version();
@@ -116,7 +116,7 @@ static void parse_options(int argc, char **argv)
case 'C':
flags |= FL_NOCONSOLE;
break;
- case 'n':
+ case 'F':
flags |= FL_NODAEMON;
break;
default: