xenserver: Only require confirmation for "vswitch restart" if interactive.
authorBen Pfaff <blp@nicira.com>
Mon, 18 May 2009 22:29:45 +0000 (15:29 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 21 May 2009 19:48:39 +0000 (12:48 -0700)
commite56c340e809a7618e02117de50969baa0a648285
tree4900b954959a557680fd0ab89435b19ab4b07379
parent81ec03fdac2dd9ccf5108d64cffef3f6e417a323
xenserver: Only require confirmation for "vswitch restart" if interactive.

When /etc/init.d/vswitch restart is invoked non-interactively (e.g. from
a cron job), don't require interactive confirmation.  Not that we should
encourage such behavior, but this approach seems closer to what most Unix
utilities do in similar situations.
xenserver/etc_init.d_vswitch