## #from sickbeard import WEB_PORT, WEB_ROOT, PID, ENABLE_HTTPS, THEME_NAME #set sg_host = $getVar('sbHost', 'localhost') #set sg_port = str($getVar('sbHttpPort', WEB_PORT)) #set sg_root = $getVar('sbRoot', WEB_ROOT) #set sg_pid = $getVar('sbPID', str(PID)) #set sg_use_https = $getVar('sbHttpsEnabled', ENABLE_HTTPS) #set theme_suffix = ('', '-dark')['dark' == $getVar('sbThemeName', THEME_NAME)] #set do_shutdown = bool($getVar('shutdown', False)) ## can be None so must enforce bool ## SickGear - Restarting

Performing #echo ('Restart', 'Shutdown')[$do_shutdown]#

Waiting for SickGear to shut down:
#if not $do_shutdown Waiting for SickGear to start up: #end if
#if not $do_shutdown Waiting for SickGear home page: #end if
#if not $do_shutdown Error: The restart timed out, perhaps something prevented SickGear from starting ? #end if