You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Circus: A Process & Socket Manager¶ Circus is a Python program which can be used to monitor and control processes and sockets. Circus can be driven via a command-line interface, a web interface or programmatically through its python API. To install it and try its features check out the Step-by-step tutorial, or read the rest of this page for a quick introduction. Running a Circus Daemon¶ Circus pr
It’s no secret that the devo.ps team has a crush on Javascript; node.js in the backend, AngularJS for our clients, there isn’t much of our stack that isn’t at least in part built with it. Our approach of building static clients and RESTful JSON APIs means that we run a lot of node.js and I must admit that, despite all of it awesomeness, node.js still is a bit of a headache when it comes to running
斎藤です。こんにちは。 今日は、デーモンの起動・終了に際してはserviceコマンドを使った方がいいよ、というお話です。 ※CentOS 6.4 (x86_64) でテストしています。尚、特記がある所を除きます。 デーモンの起動・終了には大きく2手 Linux、特にRedHat, CentOS, Fedora, Ubuntu[1]などでは、デーモンの起動・終了の制御の際に、大きく分けて次の2つの方法を用いる事ができます。 "/etc/init.d/"配下のスクリプト(以下、スクリプト)を直接実行する "service"コマンドを実行する 一見、同じ事をやっているように思えるのですが、実は違う部分があります。それは、起動スクリプトが扱う環境変数が違うのです。次の節で、検証してみます。 扱う環境変数が違う スクリプトを直接実行する場合は、実行時の際の環境変数をそのまま利用します。一方、serv
https://github.com/tokuhirom/Harriet/https://metacpan.org/module/TOKUHIROM/Harriet-0.01/lib/Harriet.pmテストのときにつかう mysqld, memcached, stf, groonga あたりのデーモンを、.t 単位で起動していては遅くてかなわない。かといって、あらかじめ起動させておくというのも。。 というわけで prove のプラグインとしてよしなにする、みたいなのをがんばってかく、というような試みがおこなわれてきたわけですが、どうもめんどくさい。 なんか適当にやったらうまくうごく、っていうかんじのカジュアルなツールがほしいな、なんておもったりするわけですよ そこで、Harriet ってのをつくってみました。 なんかこう、t/harriet/mysqld.pl っていうファイル名でこん
このように独立したポートが必要なとき*3に $PORT を利用することで汎用性が保たれます。 $PORT の開始番号を指定する(-p, --port) 標準では $PORT は 5000 から始まります。しかし、以下のように指定すると 6000 から始まるようになります。 foreman start -p 6000 foreman は、主に Web アプリケーションと非同期/定期処理とを並列動作させる目的で使われます。 その場合、Procfile の先頭に Web アプリケーションを書くという慣習があります。それは Web アプリケーションが利用するポート番号がわかりやすいからです。 foreman を止める foreman を正式に止めるには、foreman のプロセスに SIGTERM を送信してください。 foreman は起動した個々のプロセスに対して SIGTERM を送信し、全
CentOS上で動かすuWSGIをデーモンとして扱いたかったのですが、起動スクリプトを書いたことがなかったので少し調べてみました。 軽くググると/etc/init.d/skeletonにテンプレートファイルがあるという事だったのですが、手元のCentOSでは存在しませんでした。一方でUbuntuでは存在を確認できたのですが、UbuntuのテンプレートファイルをCentOSでそのまま流用はできないようです。 もう少し調べてみると、手元のCentOS 6.2の場合は下記のファイル内に、起動スクリプトのテンプレートが含まれていることがわかりました。(パス中の数字は環境によって異なりそうです。) /usr/share/doc/initscripts-9.03.27/sysvinitfiles 上記ファイルからテンプレート部分を抜粋したものが以下になります。 #!/bin/bash # # /etc
I've been trying to write a startup script for my play2 application but I can't get it to work as a background task. I started out at the docs and came up with the script below. Script: #! /bin/sh # description: Starts autocomplete play app using daemon # 1. Go to $APPLICATION_PATH and prepare for dev by doing: play clean compile stage # This will create a start script at target/start # 2. Start t
Daemon Showdown: Upstart vs. Runit vs. Systemd vs. Circus vs. God Mar 8th, 2013 We write a lot of daemons: programs which run on servers in the background, like an HTTP server, or a database. Once we've written the programs, though, we have to run them, and running programs as daemons is surprisingly heavy on details; it's fraught with perils for the unwary. If you go the traditional Unix way, you
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く