htb.init wrong exit status
Status: Beta
Brought to you by:
lbulej
Hi,
getting error on Debian 8 when running htb.init as a service.
htb.init even when running success has exit code = 1.
as result getting following error:
systemd[1]: htb.init.service: control process exited, code exited status=1
systemd[1]: Failed to start SYSV: script to setup HTB traffic control
After some researc found a line at the end of start/compile case:
[ "$1" = "compile" ] && echo
As understood this required only for output formatting when we have compile option provided.
If option is "start" it produces exit code = 1
As a workaround for myself I had just commented out problem line.
Please ceck script and fix the issue if possible :-)
Thanks!
Please see https://github.com/lbulej/htb.init for a fixed version.