Exemplo n.º 1
0
def stopSmartd(): 
    if smartd.daemonRunning():
        smartd.stopDaemon();
        if not smartd.daemonRunning():
            if showPopups:
                xbmc.executebuiltin("Notification(smartmontools, " + addon.getLocalizedString(50025)+ ", 7, " + icon + ")");  # smartd stopped
        else:
            xbmcgui.Dialog().ok(consts.dialogHeader, addon.getLocalizedString(50026));   # Failed to stop smartd
Exemplo n.º 2
0
def stopSmartd():
    if smartd.daemonRunning():
        smartd.stopDaemon()
        if not smartd.daemonRunning():
            if showPopups:
                xbmc.executebuiltin("Notification(smartmontools, " +
                                    addon.getLocalizedString(50025) + ", 7, " +
                                    icon + ")")
                # smartd stopped
        else:
            xbmcgui.Dialog().ok(consts.dialogHeader,
                                addon.getLocalizedString(50026))
Exemplo n.º 3
0
def stopService():
    smartd.stopDaemon()
Exemplo n.º 4
0
def stopService():
    smartd.stopDaemon();