
Xdebug
- 1 ответ
- 0 вопросов
1
Вклад в тег
#!/bin/bash
#
# mainer_killer.sh
# This script finds and kills the process named ./top and makes it impossible to start
#
let mainerid=$(ps aux | grep ./top | grep bitrix |awk '{print $2}')
kill $mainerid && mkdir /tmp/xtmp && mkdir /tmp/xtmp/top && chown root:root /tmp/xtmp && chown root:root /tmp/xtmp/top && chmod 750 /tmp/xtmp && chmod 750 /tmp/xtmp/top