Sha256: 4d5eb3c7d203dfc334384468f3870602e6f04e06fecdf175035bdb4f19ff1ba6
Contents?: true
Size: 1.19 KB
Versions: 5
Compression:
Stored size: 1.19 KB
Contents
module Specinfra module Command module Module module Service module Daemontools def check_is_enabled_under_daemontools(service) "test -L /service/#{escape(service)} && test -f /service/#{escape(service)}/run" end def check_is_running_under_daemontools(service) "svstat /service/#{escape(service)} | grep -E 'up \\(pid [0-9]+\\)'" end def enable_under_daemontools(service, directory) "ln -snf #{escape(directory)} /service/#{escape(service)}" end def disable_under_daemontools(service) "( cd /service/#{escape(service)} && rm -f /service/#{escape(service)} && svc -dx . log )" end def start_under_daemontools(service) "svc -u /service/#{escape(service)}" end def stop_under_daemontools(service) "svc -d /service/#{escape(service)}" end def restart_under_daemontools(service) "svc -t /service/#{escape(service)}" end def reload_under_daemontools(service) "svc -h /service/#{escape(service)}" end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems