in lib/runit.rb [22:53]
def self.start_runsvdir
runit_installed!
runit_config = Runit::Config.new(GDK.root)
services = GDK::Services.enabled
legacy_services = GDK::Services.legacy.select(&:enabled?)
runit_config.render(services: services + legacy_services)
args = runsvdir_base_args
return if runsvdir_pid(args)
dots = '.' * 395
Process.fork do
Dir.chdir('/')
Process.setsid
args << "log: #{dots}"
spawn(cleaned_path_env, *args, in: '/dev/null', out: '/dev/null', err: '/dev/null')
end
end