Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Add option to restart Mopidy service #17

@jcass77

Description

@jcass77

It may be useful to have an option available to restart the Mopidy service to deal with situations where the actor dies unexpectedly (e.g. due to a misbehaving backend extension).

This would be quicker than having to do a full reboot, and easier than having to log in to the terminal to issue the command manually.

It probably means just adding WebServiceRestartRequestHandler that does service mopidy restart, similar to

class WebRebootRequestHandler(tornado.web.RequestHandler):
def initialize(self, core):
self.core = core
def post(self):
logger.info('Halting system')
os.system("sudo shutdown -r now")
os.system("shutdown -r now")
?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions