6 lines · 127 B · Shell
RawDownload
#!/bin/bashif systemctl is-active <%= service %>then    # Stop service that is running    systemctl stop <%= service %>fi