mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
24 lines
368 B
Go
24 lines
368 B
Go
package profile
|
|
|
|
import "github.com/Safing/portbase/modules"
|
|
|
|
var (
|
|
shutdownSignal = make(chan struct{})
|
|
)
|
|
|
|
func init() {
|
|
modules.Register("profile", nil, start, stop, "global", "database")
|
|
}
|
|
|
|
func start() error {
|
|
err := initSpecialProfiles()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return initUpdateListener()
|
|
}
|
|
|
|
func stop() error {
|
|
close(shutdownSignal)
|
|
return nil
|
|
}
|