Add restart to upstart and systemd script

This commit is contained in:
Yue Zhang
2015-08-02 14:23:50 +08:00
parent 7ef609d7d5
commit fb40e89ea6
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -22,3 +22,5 @@ pre-start script
end script
exec /usr/sbin/waagent -daemon
respawn
+2
View File
@@ -8,6 +8,8 @@ ConditionPathExists=/etc/waagent.conf
[Service]
Type=simple
ExecStart=/usr/sbin/waagent -daemon
Restart=always
[Install]
WantedBy=multi-user.target