<div dir="ltr">Maybe bandwith wasn't the best example :) But my question is still valid.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 8, 2013 at 2:18 PM, Reindl Harald <span dir="ltr"><<a href="mailto:h.reindl@thelounge.net" target="_blank">h.reindl@thelounge.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Am 08.03.2013 14:12, schrieb Umut Tezduyar:<br>
<div class="im">> To summarize, where are users encouraged to place their early boot up initialization services (ex: setting up the<br>
> bandwith on a NIC)?<br>
<br>
<br>
</div>[root@rh:~]$ systemctl status bandwidth.service<br>
bandwidth.service - Traffic-Shaping<br>
Loaded: loaded (/etc/systemd/system/bandwidth.service; enabled)<br>
Active: active (exited) since Di 2013-03-05 12:38:49 CET; 3 days ago<br>
Main PID: 16981 (code=exited, status=0/SUCCESS)<br>
CGroup: name=systemd:/system/bandwidth.service<br>
<br>
Mär 05 12:38:49 <a href="http://rh.thelounge.net" target="_blank">rh.thelounge.net</a> systemd[1]: Starting Traffic-Shaping<br>
Mär 05 12:38:49 <a href="http://rh.thelounge.net" target="_blank">rh.thelounge.net</a> systemd[1]: Started Traffic-Shaping<br>
<br>
<br>
[root@rh:~]$ cat /etc/systemd/system/bandwidth.service<br>
[Unit]<br>
Description=Traffic-Shaping<br>
After=network.service network-bonding.service network-bonding-bridge.service network-wlan-bridge.service<br>
<br>
[Service]<br>
Type=oneshot<br>
RemainAfterExit=yes<br>
<br>
ExecStart=/sbin/tc qdisc add dev eth0 root handle 1: htb default 30 r2q 1000<br>
ExecStartPost=/sbin/tc class add dev eth0 parent 1: classid 1:2 htb rate 1000mbit<br>
ExecStartPost=/sbin/tc class add dev eth0 parent 1: classid 1:3 htb rate 90mbit<br>
ExecStartPost=/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst <a href="http://10.0.0.0/24" target="_blank">10.0.0.0/24</a> flowid 1:2<br>
ExecStartPost=/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 2 u32 match ip dst <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a> flowid 1:3<br>
<br>
ExecStartPost=/sbin/tc qdisc add dev eth1 root handle 1: htb default 30 r2q 1000<br>
ExecStartPost=/sbin/tc class add dev eth1 parent 1: classid 1:2 htb rate 1000mbit<br>
ExecStartPost=/sbin/tc class add dev eth1 parent 1: classid 1:3 htb rate 90mbit<br>
ExecStartPost=/sbin/tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst <a href="http://10.0.0.0/24" target="_blank">10.0.0.0/24</a> flowid 1:2<br>
ExecStartPost=/sbin/tc filter add dev eth1 protocol ip parent 1:0 prio 2 u32 match ip dst <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a> flowid 1:3<br>
<br>
ExecStop=/sbin/tc qdisc del dev eth0 root<br>
ExecStopPost=/sbin/tc qdisc del dev eth1 root<br>
<br>
[Install]<br>
WantedBy=multi-user.target<br>
<br>
<br>_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
<br></blockquote></div><br></div>