dovecot-2.1: doveadm instance list: Show the last used field.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 6 21:48:35 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/833ac7b1d58b
changeset: 14072:833ac7b1d58b
user: Timo Sirainen <tss at iki.fi>
date: Mon Feb 06 21:48:29 2012 +0200
description:
doveadm instance list: Show the last used field.
diffstat:
src/doveadm/doveadm-instance.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r 51c4e336c872 -r 833ac7b1d58b src/doveadm/doveadm-instance.c
--- a/src/doveadm/doveadm-instance.c Mon Feb 06 21:45:49 2012 +0200
+++ b/src/doveadm/doveadm-instance.c Mon Feb 06 21:48:29 2012 +0200
@@ -52,6 +52,7 @@
doveadm_print_init(DOVEADM_PRINT_TYPE_TABLE);
doveadm_print_header("path", "path", DOVEADM_PRINT_HEADER_FLAG_EXPAND);
doveadm_print_header_simple("name");
+ doveadm_print_header_simple("last used");
doveadm_print_header_simple("running");
list = master_instance_list_init(MASTER_INSTANCE_PATH);
@@ -59,6 +60,7 @@
while ((inst = master_instance_iterate_list_next(iter)) != NULL) {
doveadm_print(inst->base_dir);
doveadm_print(inst->name);
+ doveadm_print(unixdate2str(inst->last_used));
pidfile_path = t_strconcat(inst->base_dir, "/master.pid", NULL);
if (pid_file_read(pidfile_path))
doveadm_print("yes");
More information about the dovecot-cvs
mailing list