github.com/vlifesystems/rulehunter@v0.0.0-20180501090014-673078aa4a83/rulehunter_systemd_test.go (about) 1 // +build systemd 2 3 package main 4 5 import "testing" 6 7 /************************************* 8 * Helper functions 9 *************************************/ 10 11 func startService(t *testing.T, serviceName string) { 12 runOSCmd(t, true, "systemctl", "start", serviceName) 13 } 14 15 func stopService(t *testing.T, serviceName string) { 16 runOSCmd(t, false, "systemctl", "stop", serviceName) 17 }