github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/daemon/register_others.go (about) 1 //go:build !windows && !darwin 2 3 package daemon 4 5 import ( 6 "errors" 7 ) 8 9 // RegistrationSupported indicates whether or not daemon registration is 10 // supported on this platform. 11 const RegistrationSupported = false 12 13 // Register performs automatic daemon startup registration. 14 func Register() error { 15 return errors.New("daemon registration not supported on this platform") 16 } 17 18 // Unregister performs automatic daemon startup de-registration. 19 func Unregister() error { 20 return errors.New("daemon deregistration not supported on this platform") 21 } 22 23 // RegisteredStart potentially handles daemon start operations if the daemon is 24 // registered for automatic start with the system. It returns false if the start 25 // operation was not handled and should be handled by the normal start command. 26 func RegisteredStart() (bool, error) { 27 return false, nil 28 } 29 30 // RegisteredStop potentially handles stop start operations if the daemon is 31 // registered for automatic start with the system. It returns false if the stop 32 // operation was not handled and should be handled by the normal stop command. 33 func RegisteredStop() (bool, error) { 34 return false, nil 35 }