<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _start_frontend(self, restart=False):
 """Check if it is enabled and start the frontend http & websocket"""


        self.log(self.config, self.config.frontendenabled, lvl=verbose)
        if self.config.frontendenabled and not self.frontendrunning or restart:
            self.log("Restarting webfrontend services on",
                     self.frontendtarget)

            self.static = Static("/",
                                 docroot=self.frontendtarget).register(
                self)
            self.websocket = WebSocketsDispatcher("/websocket").register(self)
            self.frontendrunning = True