summarylogtreecommitdiffstats
path: root/10-service_status.rules
blob: b761b6b657129a139dd62ef5267a312eaa5a8aa1 (plain)
1
2
3
4
5
6
7
8
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.systemd1.manage-units" && subject.isInGroup("wheel") ) {
        var verb = action.lookup("verb");
        if (verb == "start" || verb == "stop" || verb == "restart" || verb == "enable" || verb == "disable") {
            return polkit.Result.YES;
        }
    }
});