Commit Graph

10 Commits

Author SHA1 Message Date
mpl af3d0dc1f2 pkg/osutil: add arguments to RestartProcess
use it to restart server with -reindex

Fixes #753

Change-Id: Iff4a8c725820f8204d9539b9bafe5f4d3b65780c
2016-05-09 16:18:39 +02:00
Salmān Aljammāz 20470f544f Help devcam find itself correctly on OS X
This implements osutil.SelfPath on darwin by trying a $PATH lookup
using the command invocation name. Stops the nagging "couldn't stat
devcam binary" message on OS X.

Change-Id: I42c7f5c30148d810ca753e0812b772db24e93356
2014-11-06 17:30:41 +00:00
Tamás Gulácsi 31dcddca41 Let Camlistore build on Solaris
The biggest obstacle is that syscall lacks Mkfifo on Solaris
(I've opened issue 8609 on Go for this).
Now I provide the same implementation for it as there is on Linux:
call Mknod.

github.com/cznic/fileutil needs IsEOF, so I've copied the plan9
(hole punching is stubbed out) implementation.

github.com/lib/pq: I've added solaris as a posix build tag.

Change-Id: Id667c488606a274849dc9b0af76abf1daeab5ad7
2014-08-28 14:26:11 +02:00
mpl c5630a8906 osutil: selfpath for windows, and make it public.
Change-Id: Ic3e8de6e75651921cb29e3b5e91cdb9f5159896a
2014-08-18 22:30:01 +02:00
Brad Fitzpatrick 8dc06bd49c App Engine: +build hide restart_unix.go
Otherwise won't deploy on App Engine.

Change-Id: I24df0e20c03eb5864e2a791671be88e039ca63b6
2013-03-14 19:43:25 -07:00
mpl 0824bc7f7c Pointer to minux codereview to do the restart on darwin
Change-Id: I077803b367b543f998d5d25026db2be477963bf8
2012-11-15 18:57:53 +01:00
mpl 62b5da6f99 find the path to the executable of the running instance
to restart camli properly

This change adds the functionality to find the path to
the currently running executable, so that camlistore
can be restarted without à priori knowledge of cwd.
It should work for linux, netBSD and freeBSD, and it
might work for openBSD.
The naive (os.Args[0]) approach is still used with
darwin.

Reference: https://codereview.appspot.com/6736069/

Change-Id: Icc9fc2b4e1b3542cfbe6c457c1fefbe762eff2f1
2012-11-14 16:10:50 +01:00
Andrew Gerrand 7874bef34e add bsds to osutil/restart_unix build rule
Change-Id: If5e7f811ad8c656bcfa48f26c12f7ea59ddef830
2012-08-05 10:55:36 +10:00
mpl 497fc21385 Added/changed copyright
Change-Id: I1de302b52903ebf61100ab061c1fa7f14495fde8
2012-05-27 01:37:54 +02:00
mpl b2f079f081 handle SIGHUP, restart camli from wizard
Change-Id: I9856e49b9c4d76dc3bed1827594451349d4f5810
2012-05-16 11:37:29 +02:00