diff options
author | 2010-07-07 21:52:00 +0000 | |
---|---|---|
committer | 2010-07-07 21:52:00 +0000 | |
commit | 8c3698cf7425a2d495883f91e000792a7b0df325 (patch) | |
tree | 0502aaf5b2ef29a61ede20d95e505824f56599d9 | |
parent | revert last commit, it made my puc(4) disappear. ok pirofti@ (diff) | |
download | wireguard-openbsd-8c3698cf7425a2d495883f91e000792a7b0df325.tar.xz wireguard-openbsd-8c3698cf7425a2d495883f91e000792a7b0df325.zip |
Make ifstated cause a little less noise in /var/log/daemon.
State transitions are still logged, but commands run are now
printed only in debug mode (ifstated -d).
ok deraadt
-rw-r--r-- | usr.sbin/ifstated/ifstated.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ifstated/ifstated.c b/usr.sbin/ifstated/ifstated.c index dfaaea6d46f..8e7a4065e85 100644 --- a/usr.sbin/ifstated/ifstated.c +++ b/usr.sbin/ifstated/ifstated.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifstated.c,v 1.37 2010/06/07 15:14:22 deraadt Exp $ */ +/* $OpenBSD: ifstated.c,v 1.38 2010/07/07 21:52:00 stsp Exp $ */ /* * Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org> @@ -269,7 +269,7 @@ external_exec(struct ifsd_external *external, int async) int s; if (external->pid > 0) { - log_info("previous command %s [%d] still running, killing it", + log_debug("previous command %s [%d] still running, killing it", external->command, external->pid); kill(external->pid, SIGKILL); waitpid(external->pid, &s, 0); @@ -561,7 +561,7 @@ do_action(struct ifsd_action *action) switch (action->type) { case IFSD_ACTION_COMMAND: - log_info("running %s", action->act.command); + log_debug("running %s", action->act.command); system(action->act.command); break; case IFSD_ACTION_CHANGESTATE: |