diff options
author | zsdc <taras@vyos.io> | 2022-06-06 21:33:17 +0300 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2022-06-06 21:33:17 +0300 |
commit | 74454c341a57aab66151b9ef2488eb72a306c002 (patch) | |
tree | 806e55b157da50db24d544800696019dc139a59c /data | |
parent | 0bbe8d655df4bc50d70aeef2d3199a73e0af9f03 (diff) | |
download | vyos-1x-74454c341a57aab66151b9ef2488eb72a306c002.tar.gz vyos-1x-74454c341a57aab66151b9ef2488eb72a306c002.zip |
event-handler: T3083: Optimized event-handler
* Removed dynamic generating for systemd unit
* Optimized configuration file deleting process
* Added exceptions handlers to event-handler script to protect service
from most obvious potential troubles
* Improved logging
* Moved pattern compilation outside a messages loop to avoid extra operations
* Added signal handlers for proper systemd integration
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/event-handler/systemd_event_handler_service.j2 | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/data/templates/event-handler/systemd_event_handler_service.j2 b/data/templates/event-handler/systemd_event_handler_service.j2 deleted file mode 100644 index da35a51c4..000000000 --- a/data/templates/event-handler/systemd_event_handler_service.j2 +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Event handler -After=network.target - -[Service] -Type=simple -Restart=always -ExecStart=/usr/bin/python3 /usr/libexec/vyos/vyos-event-handler.py --config /run/vyos-event-handler.conf - -[Install] -WantedBy=multi-user.target |