serverengine 2.0.0 → 2.0.1

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: 4f113bd0243d7ab01e1ee3256f159ca24e3fcaaf
4
- data.tar.gz: 98700347259e4cdd7884fd86b4875944ad6f922d
3
+ metadata.gz: 9a43da4f1758e3afce58c84f0b4d1afe36af3aba
4
+ data.tar.gz: 112970facbae6d06a9a5ca76d8b2f3fbfb492eb9
5
5
  SHA512:
6
- metadata.gz: 602df54ace3a99dff2557c4bf450cf57528dc8f080c0b1674c77978074620320ca8dec4a1f0c351c09e9731cf8fbf8dc7a2152736d4e90169e00141eb805dee6
7
- data.tar.gz: bac416916a5270e51bf4cc39cc34c697e86d33821597b93d832d865ad2edcddc39a827ed9659ad14b02ac0c5af7870c2972d00e887adc511e6625333d9e9dd2f
6
+ metadata.gz: dd452852d50e00fe0c6bcca020ea861c9a758ec42935318425ee97328ed2bde55470109ef179103751455c4fe8c322c076963e04269ce77245a07c5e9954a97a
7
+ data.tar.gz: ff08f2317fdce20b8b617c0c79c39076b4028575417d558638acb0bd31689f19b8fb9215b03bedc6f874cb3038d98f529cf685c696ff5d68b4996c6d2aa6b039
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: ruby
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