Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix multiple starts for network setup service. #2512

Merged
merged 4 commits into from
Mar 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions azurelinuxagent/common/persist_firewall_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PersistFirewallRulesHandler(object):
[Service]
Type=oneshot
ExecStart={py_path} {binary_path}
RemainAfterExit=false
RemainAfterExit=yes

[Install]
WantedBy=network.target
Expand All @@ -69,7 +69,7 @@ class PersistFirewallRulesHandler(object):

# The current version of the unit file; Update it whenever the unit file is modified to ensure Agent can dynamically
# modify the unit file on VM too
_UNIT_VERSION = "1.2"
_UNIT_VERSION = "1.3"

@staticmethod
def get_service_file_path():
Expand Down