(spec: &DaemonServiceSpec)
| 272 | } |
| 273 | |
| 274 | pub fn refresh_service(spec: &DaemonServiceSpec) -> Result<PathBuf> { |
| 275 | let runner = ServiceRunner::current()?; |
| 276 | let service_path = write_service_unit(spec)?; |
| 277 | runner.refresh(&service_path, &spec.socket_path)?; |
| 278 | Ok(service_path) |
| 279 | } |
| 280 | |
| 281 | pub fn refresh_installed_service(spec: &DaemonServiceSpec) -> Result<Option<PathBuf>> { |
| 282 | let service_path = service_unit_path()?; |