puppet-standalone-mashup/shared/additional-modules/tc/templates/tc-init.d

24 lines
343 B
D
Raw Normal View History

2012-05-17 20:22:56 +00:00
<%= scope.function_template('base/init-d-header') %>
<%= init_d_prolog %>
<%= init_d_prerun %>
start() {
echo -n "Starting $NAME: "
<%= scope.lookupvar('tc::debian::config') %>
echo "done"
}
stop() {
echo -n "Stopping $NAME: "
tc qdisc del dev eth0 root
echo "done"
}
<%= scope.function_template('base/init-d-actions') %>