inetd

inetdについて

タグ inetd


概要

  • 接続要求リクエストがあったらプロセスを立ち上げる

インストール

debian

$ sudo apt install inetutils-inetd

設定ファイル

  • /etc/inetd.conf

設定凡例

#<service name> <socket type> <proto> <flags> <user> <server pathname> <args>
rn stream tcp nowait root /opt/FJSVenavi/bin/rnd.sh rnd.sh /opt/FJSVenavi/etc/rnd.conf
  • service name
  • socket type
    • stream
  • proto
    • tcp, tcp6
  • flags
    • wait
    • nowait
  • user
    • 実行ユーザ
  • server pathname
    • 実行するファイルが有るパス
  • args
    • 実行するコマンド
    • コマンドに対する引数も入れる

参考