mirror of
https://github.com/carlostrub/sisyphus
synced 2024-10-31 09:20:15 +00:00
cosmetics
This commit is contained in:
parent
36a3cb6374
commit
1e2b563585
@ -73,7 +73,6 @@ func (p Pidfile) DaemonStop() error {
|
||||
}
|
||||
|
||||
process, err := os.FindProcess(processID)
|
||||
|
||||
if err != nil {
|
||||
e := fmt.Sprintf("Unable to find process ID [%v] with error %v \n", processID, err)
|
||||
return errors.New(e)
|
||||
@ -88,7 +87,6 @@ func (p Pidfile) DaemonStop() error {
|
||||
log.Printf("stopping sisyphus process ID [%v]\n", processID)
|
||||
// kill process and exit immediately
|
||||
err = process.Kill()
|
||||
|
||||
if err != nil {
|
||||
e := fmt.Sprintf("Unable to kill process ID [%v] with error %v \n", processID, err)
|
||||
return errors.New(e)
|
||||
|
Loading…
Reference in New Issue
Block a user