Add scripts for shutdown and restart

This commit is contained in:
Fredrik Baberg 2022-07-11 22:46:43 +02:00
parent d7e82f132b
commit 35d82905aa
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio
bashio::log.warning "Restart OctoPrint."
s6-svc -r /var/run/s6/legacy-services/octoprint

View File

@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bashio
bashio::addon.restart

View File

@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bashio
bashio::addon.stop