Split Rocket startup from REST application

Enable drop-in replacement of WSGI application hosts
with PREFERRED_PROVIDER_virtual/obmc-wsgihost.

Change-Id: Ieaa4b17cb4645bfc3224aca2edebb15d023982d5
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/common/recipes-phosphor/interfaces/phosphor-rest/obmc/wsgi_app b/common/recipes-phosphor/interfaces/phosphor-rest/obmc/wsgi_app
new file mode 100644
index 0000000..7bbffe7
--- /dev/null
+++ b/common/recipes-phosphor/interfaces/phosphor-rest/obmc/wsgi_app
@@ -0,0 +1 @@
+APPLICATION=rest_dbus
diff --git a/common/recipes-phosphor/interfaces/phosphor-rest/phosphor-rest.service b/common/recipes-phosphor/interfaces/phosphor-rest/phosphor-rest.service
deleted file mode 100644
index 6b1c33d..0000000
--- a/common/recipes-phosphor/interfaces/phosphor-rest/phosphor-rest.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=Phosphor DBus REST
-Requires=obmc-mapper.target
-After=obmc-mapper.target
-PartOf=systemd-networkd.service
-
-[Service]
-Restart=always
-ExecStart={sbindir}/phosphor-rest
-Environment="PYTHONUNBUFFERED=1"
-
-[Install]
-WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/common/recipes-phosphor/interfaces/phosphor-rest/rest-dbus.conf b/common/recipes-phosphor/interfaces/phosphor-rest/rest-dbus.conf
new file mode 100644
index 0000000..a92f0f1
--- /dev/null
+++ b/common/recipes-phosphor/interfaces/phosphor-rest/rest-dbus.conf
@@ -0,0 +1,3 @@
+[Unit]
+Wants=obmc-webserver-pre.target
+Before=obmc-webserver-pre.target