| 96 | |
| 97 | = utorrent = |
| 98 | * http://www.utorrent.com/intl/ja/downloads/linux |
| 99 | * {{{libssl0.9.8}}が必要 |
| 100 | |
| 101 | * webUIはGUI版とほぼ同じ操作性 |
| 102 | |
| 103 | * [http://forum.utorrent.com/viewtopic.php?pid=612724#p612724 Init Script for Debian/Ubuntu & Derivatives (Page 1) / General (Linux) / µTorrent Community Forums] |
| 104 | > Here's an upstart script for you guys: |
| 105 | {{{ |
| 106 | # It is highly recommended that you run this under a user account and not as root |
| 107 | # The LOGFILE must also be set to a directory writable by the user account |
| 108 | |
| 109 | # Path to the utorrent server |
| 110 | env UTORRENT_PATH=/path/to/utorrent |
| 111 | |
| 112 | # Location of the log file (must be by the current user writable) |
| 113 | env LOGFILE=/path/to/utorrent/utserver.log |
| 114 | |
| 115 | # Path of pid file |
| 116 | env PIDFILE=/path/to/utorrent/utserver.pid |
| 117 | |
| 118 | # Name of the utorrent server binary (you usually don't need to change this) |
| 119 | env EXEC=utserver |
| 120 | |
| 121 | # set account and umask executes utorrent server |
| 122 | setuid utorrent |
| 123 | umask 022 |
| 124 | |
| 125 | # Nice value you can comment this out if don't want to run at a lower priority |
| 126 | nice 15 |
| 127 | |
| 128 | kill timeout 30 |
| 129 | kill signal INT |
| 130 | |
| 131 | start on (local-filesystems and net-device-up IFACE=eth0) |
| 132 | stop on runlevel [016] |
| 133 | |
| 134 | # It is highly recommended that you don't run as the root user you will need |
| 135 | # to change this line to have your own user account for example: |
| 136 | # |
| 137 | # exec su <your user account> -c <utorrent command> |
| 138 | |
| 139 | script |
| 140 | test -f /etc/default/locale && . /etc/default/locale |
| 141 | export LANG |
| 142 | $UTORRENT_PATH/$EXEC -settingspath $UTORRENT_PATH -logfile $LOGFILE \ |
| 143 | -pidfile $PIDFILE |
| 144 | end script |
| 145 | |
| 146 | post-stop script |
| 147 | rm -f $PIDFILE |
| 148 | end script |
| 149 | }}} |
| 150 | * localeの設定がないと、日本語ファイル名の.torrentを読み込めない |