Skip to content
This repository has been archived by the owner on Feb 18, 2018. It is now read-only.

Fix to "-S" the "-s" option of the screen. #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/murder/admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

desc "Starts the Bittorrent tracker (essentially a mini-web-server) listening on port 8998."
task :start_tracker, :roles => :tracker do
run("SCREENRC=/dev/null SYSSCREENRC=/dev/null screen -dms murder_tracker python #{remote_murder_path}/murder_tracker.py && sleep 0.2", :pty => true)
run("SCREENRC=/dev/null SYSSCREENRC=/dev/null screen -dmS murder_tracker python #{remote_murder_path}/murder_tracker.py && sleep 0.2", :pty => true)
end

desc "If the Bittorrent tracker is running, this will kill the process. Note that if it is not running you will receive an error."
Expand Down
2 changes: 1 addition & 1 deletion lib/murder/murder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
DESC
task :start_seeding, :roles => :seeder do
require_tag
run "SCREENRC=/dev/null SYSSCREENRC=/dev/null screen -dms 'seeder-#{tag}' python #{remote_murder_path}/murder_client.py seeder '#{filename}.torrent' '#{filename}' `LC_ALL=C host $HOSTNAME | awk '/has address/ {print $4}' | head -n 1`"
run "SCREENRC=/dev/null SYSSCREENRC=/dev/null screen -dmS 'seeder-#{tag}' python #{remote_murder_path}/murder_client.py seeder '#{filename}.torrent' '#{filename}' `LC_ALL=C host $HOSTNAME | awk '/has address/ {print $4}' | head -n 1`"
end

desc <<-DESC
Expand Down