Commit 7d728720 authored by Abby Cin's avatar Abby Cin

Update main.go

parent f046a5d9
......@@ -24,9 +24,9 @@ func main() {
addTask(p)
s, e := service.New(p, &service.Config{
Name: "test",
DisplayName: "test service",
Description: "+1s",
Name: "dbackup",
DisplayName: "dbackup service",
Description: "cron job for database backup",
})
if e != nil {
......@@ -51,7 +51,7 @@ func main() {
if len(*svcFlag) != 0 {
err := service.Control(s, *svcFlag)
if err != nil {
log.Fatal("Valid actions: %q\n", service.ControlAction)
log.Fatal("valid actions: %q\n", service.ControlAction)
log.Fatal("%s", err)
}
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment