             "ExecStart=\"\(Paths.executable)\"",
             "Restart=on-failure",
             ""
-            ].joined(separator: "\n")
+        ].joined(separator: "\n")
     }
     
 }


public protocol SystemdProvider {
    var name: String { get }
}

extension SystemdProvider {
    
    var namespace: String {
        return name.lowercased()
    }
    
    var serviceFile: String {
        return "/lib/systemd/system/\(namespace).service"
    }
}

public class SystemdTasks {

    }
    
}

class StatusTask: Task {
    
    let name = "status"
    let namespace: String
    let provider: SystemdProvider
    
    init(provider: SystemdProvider) {
        self.namespace = provider.namespace
        self.provider = provider
    }
    
    func run(on server: Server) throws {
        try server.execute("service \(provider.namespace) status")
    }
    
}
