this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

add back old service name

pomdtr 1265febd 45ae5b46

+4 -4
+4 -4
cmd/service_darwin.go
··· 19 19 var serviceConfig = template.Must(template.New("service").Parse(string(serviceConfigBytes))) 20 20 21 21 func getServicePath() string { 22 - return filepath.Join(os.Getenv("HOME"), "Library", "LaunchAgents", "com.github.pomdtr.smallweb.plist") 22 + return filepath.Join(os.Getenv("HOME"), "Library", "LaunchAgents", "com.pomdtr.smallweb.plist") 23 23 } 24 24 25 25 func InstallService(args []string) error { ··· 65 65 return fmt.Errorf("service not installed") 66 66 } 67 67 68 - if err := exec.Command("launchctl", "start", "com.github.pomdtr.smallweb").Run(); err != nil { 68 + if err := exec.Command("launchctl", "start", "com.pomdtr.smallweb").Run(); err != nil { 69 69 return fmt.Errorf("failed to start service: %v", err) 70 70 } 71 71 ··· 78 78 return fmt.Errorf("service not installed") 79 79 } 80 80 81 - if err := exec.Command("launchctl", "stop", "com.github.pomdtr.smallweb").Run(); err != nil { 81 + if err := exec.Command("launchctl", "stop", "com.pomdtr.smallweb").Run(); err != nil { 82 82 return fmt.Errorf("failed to stop service: %v", err) 83 83 } 84 84 ··· 143 143 } 144 144 145 145 func ViewServiceStatus() error { 146 - cmd := exec.Command("launchctl", "list", "com.github.pomdtr.smallweb") 146 + cmd := exec.Command("launchctl", "list", "com.pomdtr.smallweb") 147 147 cmd.Stdout = os.Stdout 148 148 cmd.Stderr = os.Stderr 149 149 if err := cmd.Run(); err != nil {