serverengine 2.0.0-x86-mingw32 → 2.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +4 -0
- data/README.md +2 -2
- data/lib/serverengine/privilege.rb +5 -5
- data/lib/serverengine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc9d167dfb6f0aaf7013f7ca56cab07d7be13e4f
|
4
|
+
data.tar.gz: f32d19141aadf8a533d77eeccf2ae4001aed78e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7630c828a3a7cf167644fc4e590d7d409638570695b996d3058b3ebe76ca5c9e644bc1830b6e00f93f3047caa0663d1073d4b133ee11eaf4c20f48867f0c5761
|
7
|
+
data.tar.gz: 1a01938dac11d1e9edf66e31c29f7ff11d1b88bf8bfa198dc29ada81c745371023d3efeaddd44e674b5e0d9eb738fd518f6a36cb60c73e0c7fbc039a9192634b
|
data/Changelog
CHANGED
data/README.md
CHANGED
@@ -498,8 +498,8 @@ Available methods are different depending on `worker_type`. ServerEngine support
|
|
498
498
|
- Logger
|
499
499
|
- **log** sets path to log file. Set "-" for STDOUT (default: STDERR) [dynamic reloadable]
|
500
500
|
- **log_level** log level: trace, debug, info, warn, error or fatal. (default: debug) [dynamic reloadable]
|
501
|
-
- **log_rotate_age** generations to keep rotated log files (default: 5)
|
502
|
-
- **log_rotate_size** sets the size to rotate log files (default: 1048576)
|
501
|
+
- **log_rotate_age** generations to keep rotated log files (default: 5), 0 will disable log rotate.
|
502
|
+
- **log_rotate_size** sets the size to rotate log files (default: 1048576), when `log_rotate_age` is 0, the `log_rotate_size` value will be ignored.
|
503
503
|
- **log_stdout** hooks STDOUT to log file (default: true)
|
504
504
|
- **log_stderr** hooks STDERR to log file (default: true)
|
505
505
|
- **logger_class** class of the logger instance (default: ServerEngine::DaemonLogger)
|
@@ -36,6 +36,11 @@ module ServerEngine
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def self.change(user, group)
|
39
|
+
if group
|
40
|
+
etc_group = get_etc_group(group)
|
41
|
+
Process::GID.change_privilege(etc_group.gid)
|
42
|
+
end
|
43
|
+
|
39
44
|
if user
|
40
45
|
etc_pw = get_etc_passwd(user)
|
41
46
|
user_groups = [etc_pw.gid]
|
@@ -46,11 +51,6 @@ module ServerEngine
|
|
46
51
|
Process::UID.change_privilege(etc_pw.uid)
|
47
52
|
end
|
48
53
|
|
49
|
-
if group
|
50
|
-
etc_group = get_etc_group(group)
|
51
|
-
Process::GID.change_privilege(etc_group.gid)
|
52
|
-
end
|
53
|
-
|
54
54
|
nil
|
55
55
|
end
|
56
56
|
end
|
data/lib/serverengine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverengine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sigdump
|