Skip to content

Commit a784d69

Browse files
committed
Modified start_ebpf_controller.py to not restart controller during service setup
1 parent 5c5ca59 commit a784d69

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format
55
---
66
###
77

8+
# [0.9.9] - 2025-2-19
9+
10+
- Modified start_ebpf_controller.py so it does not restart the controller when configuring services.
11+
12+
###
13+
814
# [0.9.8] - 2025-2-4
915

1016
- Modified start_ebpf_router.py and start_ebpf_controller.py scripts so that if the user_rules.sh file

files/scripts/start_ebpf_controller.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -493,18 +493,13 @@ def set_local_rules(ip):
493493
if(not test1):
494494
test1 = os.system("systemctl daemon-reload")
495495
if(not test1):
496-
print("Successfully converted zfw-logging.service. Restarting!")
497-
os.system('systemctl enable zfw-logging.service')
498-
os.system('systemctl enable fw-init.service')
499-
os.system('systemctl enable ddos-monitor.service')
500-
os.system('systemctl enable api-session-monitor.service')
501-
os.system('systemctl restart ziti-controller.service')
502-
if(not os.system('systemctl is-active --quiet ziti-controller.service')):
503-
print("ziti-controller.service successfully restarted!")
504-
else:
505-
print('ziti-controller.service unable to start check router logs!')
496+
print("Successfully converted services. Enabling/Starting now!")
497+
os.system('systemctl enable --now zfw-logging.service')
498+
os.system('systemctl enable --now fw-init.service')
499+
os.system('systemctl enable --now ddos-monitor.service')
500+
os.system('systemctl enable --now api-session-monitor.service')
506501
else:
507-
print("Failed to convert ziti-controller.service!")
502+
print("Failed to init services!")
508503
else:
509504
print("zfw-logging.service already converted. Nothing to do!")
510505
else:

src/zfw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ char *direction_string;
263263
char *masq_interface;
264264
char check_alt[IF_NAMESIZE];
265265

266-
const char *argp_program_version = "0.9.8";
266+
const char *argp_program_version = "0.9.9";
267267
struct ring_buffer *ring_buffer;
268268

269269
__u32 if_list[MAX_IF_LIST_ENTRIES];

src/zfw_monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ char check_alt[IF_NAMESIZE];
8787
char doc[] = "zfw_monitor -- ebpf firewall monitor tool";
8888
const char *rb_map_path = "/sys/fs/bpf/tc/globals/rb_map";
8989
const char *tproxy_map_path = "/sys/fs/bpf/tc/globals/zt_tproxy_map";
90-
const char *argp_program_version = "0.9.8";
90+
const char *argp_program_version = "0.9.9";
9191
union bpf_attr rb_map;
9292
int rb_fd = -1;
9393

0 commit comments

Comments
 (0)