mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-27 17:24:05 +08:00
ssh kill 前端
This commit is contained in:
@@ -19,4 +19,5 @@ exports.post '/kill', (req, res) ->
|
||||
pid = parseInt req.body.pid
|
||||
child_process.exec "sudo su #{req.account.username} -c 'kill #{pid}'", (err, stdout, stderr) ->
|
||||
throw err if err
|
||||
res.json {}
|
||||
app.redis.del 'rp:process_list', ->
|
||||
res.json {}
|
||||
|
||||
Reference in New Issue
Block a user