(servicename,forcestart=False)
| 253 | |
| 254 | |
| 255 | def enable_service(servicename,forcestart=False): |
| 256 | # Stops AND disables the service |
| 257 | if distro is Ubuntu: |
| 258 | updatercd("-f",servicename,"remove",stdout=None,stderr=None) |
| 259 | updatercd("-f",servicename,"start","2","3","4","5",".",stdout=None,stderr=None) |
| 260 | else: |
| 261 | chkconfig("--add",servicename,stdout=None,stderr=None) |
| 262 | chkconfig("--level","345",servicename,"on",stdout=None,stderr=None) |
| 263 | start_service(servicename,force=forcestart) |
| 264 | |
| 265 | |
| 266 | def replace_line(f,startswith,stanza,always_add=False): |
nothing calls this directly
no test coverage detected