~mdw
/
ircbot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad47374
)
startup.sh: Run screen(1) as admin, sudo(8) to ircbot user.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 2 Sep 2012 16:48:58 +0000
(17:48 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 2 Sep 2012 16:48:58 +0000
(17:48 +0100)
The `screen' package doesn't come setuid-root any more (almost certainly
for good reason) and so can't host multiuser sessions. Don't even try.
startup.sh
patch
|
blob
|
blame
|
history
diff --git
a/startup.sh
b/startup.sh
index
392f6c8
..
3d31025
100755
(executable)
--- a/
startup.sh
+++ b/
startup.sh
@@
-2,6
+2,6
@@
set -e
screen -d -m -S bots
-screen -X -S bots
multiuser on
-screen -X -S bots acladd mdw,root
-screen -X -S bots screen -t blight ./blight-startup.tcl distorted
+screen -X -S bots
\
+ screen -t blight \
+ sh -c 'sudo -u ircbot ./blight-startup.tcl distorted; sleep 60'