     }
     
     func run(on server: Server) throws {
-        let path = "/lib/systemd/system/\(provider.namespace).service"
-        print("Writing \(path)")
-        
-        try server.execute("echo \"\(generateServiceContents())\" > \(path)")
-        
         print("Starting \(provider.name)")
-        
-        try server.execute("service start \(provider.namespace)")
-    }
-    
-    func generateServiceContents() -> String {
-        return [
-            "[Unit]",
-            "Description=\"Starts the \(provider.name) server\"",
-            "",
-            "[Service]",
-            "ExecStart=\"\(Paths.executable)\"",
-            "Restart=on-failure",
-            ""
-        ].joined(separator: "\n")
+        try server.execute("service \(provider.namespace) start")
     }
     
 }


import Foundation

extension Flock {
    static let Zewo = SystemdTasks(provider: ZewoProvider()).createTasks()
}

class ZewoProvider: SystemdProvider {
 
    let name = "Zewo"
    
}

class SystemdTasks {
    
    let provider: SystemdProvider
    
    init(provider: SystemdProvider) {
        self.provider = provider
    }
    
    func createTasks() -> [Task] {
        return [
            StartTask(provider: provider),
            StopTask(provider: provider),
            RestartTask(provider: provider)
        ]
    }
    
}

    
    func run(on server: Server) throws {
        print("Stopping \(provider.name)")
        try server.execute("service \(provider.namespace) stop")
    }
    
}
