Put some order on os-refresh-config systemd

cloud-init is populating the file /var/lib/cloud/data/cfn-init-data
with metadata and needs to happen before os-refresh-config is run
which in turn needs to happen before the cfn-hup cronjob.

Change-Id: I07fc60c4a165a42eeae1a8e5a20609a6e17fd790
This commit is contained in:
Derek Higgins 2013-07-05 15:06:49 +01:00
parent 3e2be84331
commit c0dcb8430f
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ elif [ -d /lib/systemd/system ] ; then
cat > /lib/systemd/system/os-refresh-config.service <<eof
[Unit]
Description=Refresh Config on state change
After=cloud-final.service
Before=crond.service
[Service]
ExecStart=/bin/os-refresh-config