fmt.Printf("%s\n", string(apiConfigDump))
}
- log.Warningf("Run 'sudo systemctl reload crowdsec' for the new configuration to be effective")
+ log.Warningf("Run 'sudo systemctl restart crowdsec' for the new configuration to be effective")
},
}
cmdCapiRegister.Flags().StringVarP(&outputFile, "file", "f", "", "output file destination")
if cmd.Name() == "inspect" || cmd.Name() == "list" {
return
}
- log.Infof("Run 'sudo systemctl reload crowdsec' for the new configuration to be effective.")
+ log.Infof("Run 'sudo systemctl restart crowdsec' for the new configuration to be effective.")
},
}
} else {
fmt.Printf("%s\n", string(apiConfigDump))
}
- log.Warningf("Run 'sudo systemctl reload crowdsec' for the new configuration to be effective")
+ log.Warningf("Run 'sudo systemctl restart crowdsec' for the new configuration to be effective")
},
}
cmdLapiRegister.Flags().StringVarP(&apiURL, "url", "u", "", "URL of the API (ie. http://127.0.0.1)")
if cmd.Name() == "inspect" || cmd.Name() == "list" {
return
}
- log.Infof("Run 'sudo systemctl reload crowdsec' for the new configuration to be effective.")
+ log.Infof("Run 'sudo systemctl restart crowdsec' for the new configuration to be effective.")
},
}
if cmd.Name() == "inspect" || cmd.Name() == "list" {
return
}
- log.Infof("Run 'sudo systemctl reload crowdsec' for the new configuration to be effective.")
+ log.Infof("Run 'sudo systemctl restart crowdsec' for the new configuration to be effective.")
},
}
if cmd.Name() == "inspect" || cmd.Name() == "list" {
return
}
- log.Infof("Run 'sudo systemctl reload crowdsec' for the new configuration to be effective.")
+ log.Infof("Run 'sudo systemctl restart crowdsec' for the new configuration to be effective.")
},
}
},
PersistentPostRun: func(cmd *cobra.Command, args []string) {
if cmd.Name() != "status" {
- log.Infof("Run 'sudo systemctl reload crowdsec' for the new configuration to be effective.")
+ log.Infof("Run 'sudo systemctl restart crowdsec' for the new configuration to be effective.")
}
},
}