Method: Rinit.restart

Defined in:
lib/rinit/commands.rb

.restart(pidfile, opts = {}) ⇒ Object

Examples:

"/tmp/foo.pid", {cmd: "/tmp/foo_daemon.rb", chuid: "foo", pidfile: "/tmp/foo.pid"}


36
37
38
39
# File 'lib/rinit/commands.rb', line 36

def restart(pidfile, opts={})
  stop(pidfile)
  start(opts)
end