bin/clockworkd help
Usage: clockworkd -c FILE [options] start|stop|restart|run
--pid-dir=DIR Alternate directory in which to store the process ids. Default is /Users/jm3/Code/soakcity/tmp.
-i, --identifier=STR An identifier for the process. Default is clock file name.
-l, --log Redirect both STDOUT and STDERR to a logfile named clockworkd[.<identifier>].output in the pid-file directory.
--log-dir=DIR A specific directory to put the log files into (default location is pid directory).
-m, --monitor Start monitor process.
-c, --clock=FILE Clock .rb file. Default is /Users/jm3/Code/soakcity/clock.rb.
-d, --dir=DIR Directory to change to once the process starts
-h, --help Show this message
2条答案
按热度按时间mmvthczy1#
重新启动clockworkd的现代语法是:
如果您已捆绑您的宝石,您应该:
...其中
periodic-jobs.rb
是时钟工作配置文件。完整选项:
在GitHub上发条源代码的恶魔化部分了解更多。希望对你有所帮助!
khbbv19g2#
假设您将它作为守护进程启动,那么'clockworkd-c YOUR_CLOCK.rb stop'应该可以完成这个任务。