serverengine 2.0.0-x64-mingw32 → 2.0.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc9132a1f17c81e3e27941d39f13af8cd9128e46
4
- data.tar.gz: cd916f65f94fe84bda74de0522ec1fcefddba741
3
+ metadata.gz: cf4b124ad3521434ed25e86c8954a5a5b5381397
4
+ data.tar.gz: f32d19141aadf8a533d77eeccf2ae4001aed78e2
5
5
  SHA512:
6
- metadata.gz: cdd4e62a9ae5001e77a99c339f1574019b61e4dc9c3c24a80607be676010453158fcb8e45406020ae6b080809f06f7f5ec3f5138c0951d48db692cd64b83752e
7
- data.tar.gz: 49ecbcaef19a945df4a92637b15c23b63982fab635dec088713fbd4d686fffc50b029881b16da363f64d7bf94c0b76c2b57b658e4fa0e2a7067971cb5d853eee
6
+ metadata.gz: a57e06848c5eac9e410e7f6e78bc6bf2bd61ce7a95df1e825a0185360b3e64523ef8a76655e9e787fe0a19eec7f50a01d68240591d6009a0731116364bc07da8
7
+ data.tar.gz: 1a01938dac11d1e9edf66e31c29f7ff11d1b88bf8bfa198dc29ada81c745371023d3efeaddd44e674b5e0d9eb738fd518f6a36cb60c73e0c7fbc039a9192634b
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 2016-10-18 version 2.0.1:
2
+
3
+ * Fix to set GID before UID, to make it sure to set GID with superuser privilege
4
+
1
5
  2016-08-23 version 2.0.0:
2
6
 
3
7
  * Add windows-pr gem dependency to get ruby_bin_path correctly
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
@@ -1,3 +1,3 @@
1
1
  module ServerEngine
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
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.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-08-30 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sigdump