summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDmitry Kim <dmitry point kim at gmail point com>2007-04-21 17:58:25 +0000
committerDmitry Kim <dmitry point kim at gmail point com>2007-04-21 17:58:25 +0000
commita7b1061f7546d9e3be894aa52a90c9a2f0fbae3c (patch)
tree9cca0ea47a546d5d55c232a7caab117e2b9c305c /bin
parent3d662886107ebcebd1608ee710b8130adbdbea35 (diff)
+ pidfile support + command line option for pid file name
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rbot2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/rbot b/bin/rbot
index 95076eb3..0a8fb7e9 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -68,6 +68,7 @@ opts = GetoptLong.new(
["--help", "-h", GetoptLong::NO_ARGUMENT],
["--loglevel", "-l", GetoptLong::REQUIRED_ARGUMENT],
["--trace", "-t", GetoptLong::REQUIRED_ARGUMENT],
+ ["--pidfile", "-p", GetoptLong::REQUIRED_ARGUMENT],
["--version", "-v", GetoptLong::NO_ARGUMENT]
)
@@ -117,6 +118,7 @@ if ($opts["help"])
puts " -v, --version version information"
puts " -d, --debug enable debug messages"
puts " -b, --background background (daemonize) the bot"
+ puts " -p, --pidfile write the bot pid to this file"
puts "config directory defaults to ~/.rbot"
exit 0
end