This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
software:rtorrent:daemon [2015/05/21 20:59] – root | software:rtorrent:daemon [2022/02/04 18:33] – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Запуск rtorrent как демона (без screen) на FreeBSD ====== | ||
- | Для запуска в качестве демона нужно: | ||
- | - наложить патч перед сборкой: | ||
- | - собирать с xml-rpc (иначе управлять будет нечем) | ||
- | - rc.d скрипт для запуска/ | ||
- | |||
- | К сожалению автор [[http:// | ||
- | Патч аккуратно убирает весь консольный GUI: все вызовы функций, | ||
- | |||
- | |||
- | ===== Параметры доступные rc.d скрипте ===== | ||
- | Значения по умолчанию: | ||
- | < | ||
- | rtorrent_pidfile="/ | ||
- | rtorrent_user=" | ||
- | rtorrent_group=" | ||
- | rtorrent_chroot="" | ||
- | rtorrent_chdir="" | ||
- | rtorrent_args="" | ||
- | rtorrent_bindaddr="" | ||
- | rtorrent_bindport="" | ||
- | rtorrent_download_dir="" | ||
- | rtorrent_session_dir="" | ||
- | rtorrent_ignory_settings=" | ||
- | rtorrent_config="/ | ||
- | rtorrent_rpc_bindaddr="" | ||
- | rtorrent_rpc_bindsocket="/ | ||
- | rtorrent_rpc_bindsocket_mode=""</ | ||
- | |||
- | * **enable** - запускать rTorrent | ||
- | * **pidfile** - имя файла в котором сохранится идентификатор процесса | ||
- | * **user**, **group** - имя пользователя и группа с правами которых будет работать rTorrent | ||
- | * **chroot** - директория для chroot | ||
- | * **chdir** - директорая которая станет текущей при запуске | ||
- | * **args** - аргументы которые будут переданы в rTorrent при запуске | ||
- | |||
- | Остальные настройки специфичны для rTorrent и дублируются в конфиг файле, их описание можно найти в документации к нему. | ||
- | * **bindaddr** - Bind listening socket and outgoing connections to this network interface address. | ||
- | * **bindport** - Try to open a listening port in the range a up to and including | ||
- | * **download_dir** - Set the default download directory. Defaults to " | ||
- | * **session_dir** - Session management will be enabled and the torrent files for all open downloads will be stored in this directory. Example: / | ||
- | * **ignory_settings** - Don't load ~/ | ||
- | * **config** - alternate .rtorrent.rc config file patch/name. Example: / | ||
- | * **rpc_bindaddr** - tcp (ip:port) socket for scgi/rpc connect. Example: 127.0.0.1: | ||
- | * **rpc_bindsocket** - unix domain socket for scgi/rpc connect. Example: / | ||
- | * **rpc_bindsocket_mode** - only for unix domain socket. Example: 0777 | ||