File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464Chef ::Config . from_file ( config [ :config_file ] )
6565Chef ::Config . configure { |c | c . merge! ( config ) }
6666
67+ Chef ::Daemon . change_privilege
68+
6769if Chef ::Config [ :daemonize ]
6870 unless Chef ::Config [ :log_location ] . is_a? IO
6971 Chef ::Log . init ( Chef ::Config [ :log_location ] )
Original file line number Diff line number Diff line change 7979Chef ::Config . from_file ( config [ :config_file ] )
8080Chef ::Config . configure { |c | c . merge! ( config ) }
8181
82+ Chef ::Daemon . change_privilege
83+
8284if Chef ::Config [ :daemonize ]
8385 unless Chef ::Config [ :log_location ] . is_a? IO
8486 Chef ::Log . init ( Chef ::Config [ :log_location ] )
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ def daemonize(name)
4040 exit if fork
4141 Process . setsid
4242 exit if fork
43- change_privilege
4443 Chef ::Log . info ( "Forked, in #{ Process . pid } . Priveleges: #{ Process . euid } #{ Process . egid } " )
4544 File . umask 0000
4645 $stdin. reopen ( "/dev/null" )
You can’t perform that action at this time.
0 commit comments