summaryrefslogtreecommitdiff
path: root/usr.sbin/ifstated/ifstated.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2010-07-07 21:52:01 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2010-07-07 21:52:01 +0000
commita384facfffa31bed8d82f23fc76bb15aa3ee896e (patch)
tree43f6431e959462b4b6d9a7a3ed8c966b3eb4d8a5 /usr.sbin/ifstated/ifstated.c
parenteef9afdc10c04076c69ce4f0568bd29d67da9c78 (diff)
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
Diffstat (limited to 'usr.sbin/ifstated/ifstated.c')
-rw-r--r--usr.sbin/ifstated/ifstated.c6
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: