Esempio 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
Esempio 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))
Esempio n. 3
0
def stopService():
    smartd.stopDaemon()
Esempio n. 4
0
def stopService():
    smartd.stopDaemon();