func generateSnapServiceFile(app *snap.AppInfo) (string, error) { if err := snap.ValidateApp(app); err != nil { return "", err } return genServiceFile(app), nil }
func generateSnapSocketFile(app *snap.AppInfo) (string, error) { if err := snap.ValidateApp(app); err != nil { return "", err } // lp: #1515709, systemd will default to 0666 if no socket mode // is specified if app.SocketMode == "" { app.SocketMode = "0660" } return genSocketFile(app), nil }