Frank Denis
|
09a6918226
|
Use os.Geteuid()
Fixes #2224
|
2022-10-18 14:56:39 +02:00 |
Frank Denis
|
df3fb0c9f8
|
Keep lines short
$ golines -w -m 120 --shorten-comments .
|
2022-03-23 17:48:48 +01:00 |
Frank Denis
|
80942eb231
|
Don't forget Linux
|
2020-06-19 21:43:45 +02:00 |
Frank Denis
|
6235c11c77
|
When forking, relocate descriptors higher up
Channels used by the `services` module may use descriptors, so we don't
want to overwrite them.
Maybe
fixes #1371
|
2020-06-19 00:04:54 +02:00 |
Markus Linnala
|
0058bc063e
|
feature: service_linux: Support systemd watchdog
|
2019-10-19 09:36:39 +02:00 |
Frank Denis
|
3e10fc917f
|
Of course, things have to be different on Linux
|
2019-09-07 16:45:11 +02:00 |
Frank Denis
|
6e8b7e64ba
|
Use x/sys instead of syscalls, merge privilege_linux and _others
|
2019-09-07 12:10:31 +02:00 |
Frank Denis
|
8076e206e0
|
Revert "Install the windows service as "NT AUTHORITY\NetworkService""
This reverts commit 17db0a658f .
On Windows, switching to user `NT AUTHORITY\NetworkService` apparently
breaks logging (reported by @Aland_123).
|
2019-03-14 20:10:53 +01:00 |
Frank Denis
|
17db0a658f
|
Install the windows service as "NT AUTHORITY\NetworkService"
Untested
Maybe
Fixes #686
|
2019-01-10 22:44:58 +01:00 |
Frank Denis
|
b886585486
|
Remove unused var
|
2019-01-02 22:59:16 +01:00 |
Alexey Ivanov
|
1cf7ce94ba
|
Fixed error reporting (#671)
|
2018-12-23 18:10:14 +01:00 |
Frank Denis
|
e4a1245fb2
|
user.Current() fails when CGO is disabled and USER/HOME are not defined
So, ignore it if it fails.
This used to happen on Linux; not sure about other systems.
Fixes #607
|
2018-10-08 17:48:05 +02:00 |
Frank Denis
|
b81a72cc3e
|
Fix 16f1f8b71d
|
2018-10-05 01:06:44 +02:00 |
Frank Denis
|
16f1f8b71d
|
If syscall.Exec() fails, print why
|
2018-10-05 00:48:17 +02:00 |
Frank Denis
|
772c8d0e6c
|
user.Lookup() may not be available on some platforms
So, explain what's going on, support numeric ids, try to be a bit
more friendly to these platforms
|
2018-10-03 17:57:39 +02:00 |
Frank Denis
|
9f1be6e079
|
killChild() is not needed any more; update config example by the way
|
2018-10-03 16:35:59 +02:00 |
Frank Denis
|
a74c0fedeb
|
Of course, Linux has to do things differently
|
2018-10-03 16:33:33 +02:00 |