How to Register Jobs
================================================================================
-One can use setjob.py to register jobs from command line.
- # python tool/setjob.py --help
- usage: setjob.py [options]
+One can use psil-set to register jobs from command line.
+ # python tool/psil-set --help
+ usage: psil-set [options]
options:
--version show program's version number and exit
configuration file
-a ACTION, --action=ACTION
action command
+ -t TYPE, --type=TYPE Run type. "serial" or "paralle"
+ -m NAME, --name=NAME action name
-r ROLLBACK, --rollback=ROLLBACK
rollback command
-f FINISH, --finish=FINISH
finish command
-n NUMBER, --number=NUMBER
- number of repeat job
-
+ Test: Number of repeat job
ex)
- # python tool/setjob.py --config /etc/opt/pysilhouette/silhouette.conf --action "/bin/echo 'action command'"
+ # python tool/psil-set --config /etc/opt/pysilhouette/silhouette.conf --action "/bin/echo 'action command'" --name=hoge --type=serial
データベースの初期化
================================================================================
-cleanupdb.pyを使用して、データベースを初期化します。
- # python tool/cleanupdb.py --config /etc/opt/pysilhouette/silhouette.conf
+psil-cleandbを使用して、データベースを初期化します。
+ # python tool/psil-cleandb --config /etc/opt/pysilhouette/silhouette.conf
pysilhouetteの起動
ジョブの登録
================================================================================
-setjob.pyを使用して、コマンドラインからジョブを登録することができます。
- # python tool/setjob.py --help
- usage: setjob.py [options]
+psil-setを使用して、コマンドラインからジョブを登録することができます。
+ # python tool/psil-set --help
+ usage: psil-set [options]
options:
--version show program's version number and exit
configuration file
-a ACTION, --action=ACTION
action command
+ -t TYPE, --type=TYPE Run type. "serial" or "paralle"
+ -m NAME, --name=NAME action name
-r ROLLBACK, --rollback=ROLLBACK
rollback command
-f FINISH, --finish=FINISH
finish command
-n NUMBER, --number=NUMBER
- number of repeat job
-
- 例)
- # python tool/setjob.py --config /etc/opt/pysilhouette/silhouette.conf --action "/bin/echo 'action command'"
+ Test: Number of repeat job
+ ex)
+ # python tool/psil-set --config /etc/opt/pysilhouette/silhouette.conf --action "/bin/echo 'action command'" --name=hoge --type=serial
Directory Structure
================================================================================
.
-|-- AUTHORS
+|-- AUTHORS
|-- ChangeLog
|-- INSTALL
|-- INSTALL.ja
|-- LICENSE
-|-- MANIFEST.in x # for distutils packaging
+|-- MANIFEST.in # for distutils packaging
|-- README
|-- README.ja # Japanese version of this file.
+|-- debian
+| |-- README.Debian
+| |-- changelog
+| |-- compat
+| |-- control
+| |-- copyright
+| |-- dirs
+| |-- docs
+| |-- performerd.init
+| |-- postinst
+| |-- postrm
+| |-- preinst
+| |-- prerm
+| |-- pycompat
+| |-- rules
+| |-- schedulerd.init
+| |-- silhouetted.default
+| `-- silhouetted.init
|-- doc
-| |-- epydoc.cfg # Configuration file for epydoc.
+| |-- epydoc.cfg # Configuration file for epydoc
| |-- log.conf.example # Example config file for logging function.
| |-- rc.d
| | `-- init.d
+| | |-- asynperformerd # init script for the asynperformer daemon
+| | |-- asynschedulerd # init script for the asynschedulerd daemon
| | |-- performerd # init script for the performer daemon
| | |-- schedulerd # init script for the scheduler daemon
| | `-- silhouetted # init script for the watch daemon
| |-- redhat.spec # Spec file for RPM building.
| |-- silhouette.conf.example # Example config file for Pysilhouette
-| |-- sysconfig # System config file.
+| |-- sysconfig
| | `-- silhouetted
-| |-- whitelist.conf.example # Example config file for whitelist function
-| `-- wwwpysilhouette # Web interface
-| |-- config.py
-| |-- deletejg.py
-| |-- form.py
-| |-- getjg.py
-| |-- index.py
-| |-- job_delete.py
-| |-- job_get.py
-| |-- job_post.py
-| |-- job_put.py
-| |-- postjg.py
-| |-- putjg.py
-| |-- statjg.py
-| |-- style.css
-| |-- util.py
-| `-- validate.js
+| `-- whitelist.conf.example # Example config file for whitelist function
|-- example # Sample programs using pysilhouette.
| |-- dummy.py
| |-- insert_dummy.py
| |-- sendmail.py
| |-- test_failure.py
| `-- test_success.py
-|-- pysilhouette # Main program.
+|-- pysilhouette
| |-- __init__.py
+| |-- asynperformer.py
+| |-- asynscheduler.py
| |-- command.py
| |-- daemon.py # Daemonizing function.
| |-- db # Database related files.
| | |-- __init__.py
| | |-- access.py # Database operation.
-| | `-- model.py # Database table model.
+| | |-- model.py # Database table model.
+| |-- er.py
| |-- log.py
| |-- performer.py # Performer daemon (executes job commands)
| |-- prep.py # Initialize functions.
|-- setup.cfg # Configuration for distutils packaging.
|-- setup.py # Main command for distutils packaging.
`-- tool # Tools for development/operation.
- |-- cleanupdb.py # Initializes database.
- |-- epydoc.sh # Generates javadoc-like documents.
- `-- setdummy.py # Sets some dummy job commands.
+ |-- epydoc.sh
+ |-- psil-cleandb
+ |-- psil-set
+ `-- sqlite2other.py
Acknowledgment
================================================================================
|-- ChangeLog # チェンジログ
|-- INSTALL # 英語版インストールマニュアル
|-- INSTALL.ja # 日本語版インストールマニュアル
-|-- LICENSE # ライセンス
-|-- MANIFEST.in x # distutilsを利用したパッケージングをするのに使用する。
+|-- LICENSE # ライセンス
+|-- MANIFEST.in # distutilsを利用したパッケージングをするのに使用する。
|-- README # 英語語版インストールマニュアル
-|-- README.ja # 日本語版インストールマニュアル
+|-- README.ja # 日本語版インストールマニュアル
+|-- debian # 仮
+| |-- README.Debian
+| |-- changelog
+| |-- compat
+| |-- control
+| |-- copyright
+| |-- dirs
+| |-- docs
+| |-- performerd.init
+| |-- postinst
+| |-- postrm
+| |-- preinst
+| |-- prerm
+| |-- pycompat
+| |-- rules
+| |-- schedulerd.init
+| |-- silhouetted.default
+| `-- silhouetted.init
|-- doc # ドキュメントや設定ファイル関連置き場
| |-- epydoc.cfg # epydoc設定ファイル
| |-- log.conf.example # ログ設定ファイルのテンプレート
| |-- rc.d # 起動スクリプト
| | `-- init.d
-| | |-- performerd # パフォーマーーデーモンの起動スクリプト
-| | |-- schedulerd # スケジューラーデーモンの起動スクリプト
-| | `-- silhouetted # 監視デーモンの起動スクリプト
+| | |-- asynperformerd # 並列処理用デーモンの起動スクリプト
+| | |-- asynschedulerd # 並列処理用スケジュールデーモンの起動スクリプト
+| | |-- performerd # 逐次処理用デーモンの起動スクリプト
+| | |-- schedulerd # 逐次処理用スケジュールデーモンの起動スクリプト
+| | `-- silhouetted # アプリケーション(監視を含む)の起動スクリプト
| |-- redhat.spec # RPM用のspecファイル
| |-- silhouette.conf.example # Pysilhouette設定ファイルのテンプレート
| |-- sysconfig # システム設定ファイル
| `-- test_success.py
|-- pysilhouette # プログラム本体
| |-- __init__.py
+| |-- asynperformer.py
+| |-- asynscheduler.py
| |-- command.py
| |-- daemon.py # デーモン化で利用する関数群
| |-- db # Database関連
| | |-- __init__.py
| | |-- access.py # Databaseの操作
-| | `-- model.py # Databaseのテーブルモデル
+| | |-- model.py # Databaseのテーブルモデル
+| |-- er.py
| |-- log.py
-| |-- performer.py # パフォーマーデーモン(ジョブコマンドを実行する)
+| |-- performer.py
| |-- prep.py # 初期処理で利用する関数群
-| |-- scheduler.py # スケジューラーデーモン(ジョブコマンドの実行のスケジューリング)
-| |-- silhouette.py # 監視デーモン(パフォーマーデーモン、スケジューラーデーモンの監視)
+| |-- scheduler.py
+| |-- silhouette.py
| |-- tests # テスト関連
| | |-- __init__.py
| | |-- suite.py
| | |-- testprep.py
| | |-- testutil.py
| | `-- testworker.py
-| |-- uniqkey.py # ユニークキー
+| |-- uniqkey.py # Unique key for the instance.
| |-- util.py
| `-- worker.py
-|-- setup.cfg # distutilsを利用したパッケージングをするのに使用する設定ファイル。
-|-- setup.py # distutilsを利用したパッケージングをするのに使用する実行ファイル。
+|-- setup.cfg # distutilsを利用したパッケージングをするのに使用する設定ファイル
+|-- setup.py # distutilsを利用したパッケージングをするのに使用する実行ファイル
`-- tool # 開発時や運用時に利用するコマンドベースの実行ファイル
- |-- cleanupdb.py # Databaseを初期化する実行ファイル
|-- epydoc.sh # Javadoc風なドキュメントを自動生成する実行ファイル
- `-- setjob.py # コマンドラインからジョブコマンドを登録する実行ファイル
-
+ |-- psil-cleandb # Databaseを初期化する実行ファイル
+ |-- psil-set # コマンドラインからジョブコマンドを登録する実行ファイル
+ `-- sqlite2other.py
著作権/ライセンス
================================================================================
-Copyright (c) 2009 HDE, Inc.
+Copyright (c) 2009-2010 HDE, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal