Skip to content

Shutdown requires network #619

@da4id

Description

@da4id

Hi

Ive written an Plugin for Octoprint Octoprint MyStrom Switch this Plugin integrates a wifi switch into Octoprint. This switch has an feature that allows to tell the switch turn off relais in xy seconds. This is very useful in combination with octopi. With that i can shutdown the printer and after 60 seconds if the raspberry pi is shutted down it turns off power as well.

There is one Problem if I issue the command sudo shutdown -h now the network connection is shutted down bevore the plugin gets the shutdown event. Therefore the wifiswitch wont turn off.
see this Issue

The fix is to add # Required-Stop: networking to the init script

I think this could be useful for other plugins too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions