Add support for Debian/Ubuntu - #384
Conversation
|
Nice to add support for more use cases, but cake-autorate itself should not instantiate cake instances. That should be taken care of independently of cake-autorate. cake-autorate should just change the bandwidth of existing cake instances. |
|
The challenge is in there not being an easy way to get cake set up outside router-oriented distributions. |
|
Sounds good. I think that was also just recently done for another such PR. |
|
@sbivol shall I keep this PR open? |
|
Please keep this PR open, I have split |
|
The changes are now in place, please review again. |
|
This is what I am using: [Unit]
Description=cake-autorate for %I
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
AmbientCapabilities=CAP_NET_ADMIN
AmbientCapabilities=CAP_NET_RAW
CapabilityBoundingSet=CAP_NET_ADMIN
CapabilityBoundingSet=CAP_NET_RAW
ExecStart=%%PREFIX/cake-autorate %%CONFIG/config.%I.sh
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
Restart=on-failure
RestartSec=5
RestrictAddressFamilies=AF_INET
RestrictAddressFamilies=AF_INET6
RestrictAddressFamilies=AF_NETLINK
RestrictAddressFamilies=AF_UNIX
RuntimeDirectory=cake-autorate
[Install]
WantedBy=multi-user.targetI would avoid using the launcher. |
|
I also added d2ff9aa which should better accommodate systemd. |
This adds support for running cake-autorate on Debian and related distributions.
I have been running cake-autorate on Ubuntu Server for a year and am willing to maintain support for this OS family going forward.