serverengine 2.0.0-x64-mingw32 → 2.0.1-x64-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: cf4b124ad3521434ed25e86c8954a5a5b5381397
|
4
|
+
data.tar.gz: f32d19141aadf8a533d77eeccf2ae4001aed78e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a57e06848c5eac9e410e7f6e78bc6bf2bd61ce7a95df1e825a0185360b3e64523ef8a76655e9e787fe0a19eec7f50a01d68240591d6009a0731116364bc07da8
|
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: x64-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
|