forked from pool/python-azure-agent
+ The agnet service gets restarted in post but may fail due to a missing
config file. config files were split into their own package previously.
When we detect that we have to restore a config file we also need
to restrat the agent again.
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/python-azure-agent?expand=0&rev=119
20 lines
403 B
Diff
20 lines
403 B
Diff
--- bin/waagent.orig
|
|
+++ bin/waagent
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/python3
|
|
#
|
|
# Azure Linux Agent
|
|
#
|
|
--- init/waagent.service.orig
|
|
+++ init/waagent.service
|
|
@@ -8,7 +8,7 @@ ConditionPathExists=/etc/waagent.conf
|
|
|
|
[Service]
|
|
Type=simple
|
|
-ExecStart=/usr/bin/python -u /usr/sbin/waagent -daemon
|
|
+ExecStart=/usr/bin/python3 -u /usr/sbin/waagent -daemon
|
|
Restart=always
|
|
RestartSec=5
|
|
|