1// +build appengine
2
3/*
4Copyright 2012 The Perkeep Authors.
5
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License at
9
10     http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing, software
13distributed under the License is distributed on an "AS IS" BASIS,
14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15See the License for the specific language governing permissions and
16limitations under the License.
17*/
18
19package osutil
20
21import (
22	"errors"
23	"log"
24)
25
26// SelfPath returns the path of the executable for the currently running
27// process.
28func SelfPath() (string, error) {
29	return "", errors.New("selfPath not implemented on App Engine")
30}
31
32// RestartProcess returns an error if things couldn't be
33// restarted.  On success, this function never returns
34// because the process becomes the new process.
35func RestartProcess(arg ...string) error {
36	log.Print("RestartProcess not implemented on this platform.")
37	return nil
38}
39