From: Teemu Toivola Date: Fri, 8 Mar 2019 17:29:52 +0000 (+0200) Subject: fix: some DaemonGroup documentation mentioned user instead of group X-Git-Tag: v2.2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=995edf265f61fd59058a8d0646e30517f175dfc3;p=vnstat fix: some DaemonGroup documentation mentioned user instead of group --- diff --git a/cfg/vnstat.conf b/cfg/vnstat.conf index 240d47a..82c9ea8 100644 --- a/cfg/vnstat.conf +++ b/cfg/vnstat.conf @@ -71,7 +71,7 @@ ListTop 10 # switch to given user when started as root (leave empty to disable) DaemonUser "" -# switch to given user when started as root (leave empty to disable) +# switch to given group when started as root (leave empty to disable) DaemonGroup "" # try to detect interface maximum bandwidth, 0 = disable feature diff --git a/man/vnstat.conf.5 b/man/vnstat.conf.5 index 9d352c1..15d883f 100644 --- a/man/vnstat.conf.5 +++ b/man/vnstat.conf.5 @@ -193,16 +193,16 @@ user used to start the process. .TP .B DaemonGroup -Specify the user to which the daemon process will switch during startup. -The user can either be the name of the group or a numerical group id. -Leave empty to disable the group switch. This option can only be used when +Specify the group to which the daemon process should switch during startup. +The group can either be the name of the group or a numerical group id. +Leave empty to disable group switching. This option can only be used when the process is started as root. .TP .B DaemonUser -Specify the user to which the daemon process will switch during startup. +Specify the user to which the daemon process should switch during startup. The user can either be the login of the user or a numerical user id. -Leave empty to disable the user switch. This option can only be used when +Leave empty to disable user switching. This option can only be used when the process is started as root. .TP diff --git a/src/cfgoutput.c b/src/cfgoutput.c index e3da445..5a40909 100644 --- a/src/cfgoutput.c +++ b/src/cfgoutput.c @@ -80,7 +80,7 @@ void printcfgfile(void) printf("# switch to given user when started as root (leave empty to disable)\n"); printf("DaemonUser \"%s\"\n\n", cfg.daemonuser); - printf("# switch to given user when started as root (leave empty to disable)\n"); + printf("# switch to given group when started as root (leave empty to disable)\n"); printf("DaemonGroup \"%s\"\n\n", cfg.daemongroup); printf("# try to detect interface maximum bandwidth, 0 = disable feature\n");