Buffalo NAS-Central Forums
http://forum.buffalo.nas-central.org/

LS421DE FW 1.34 autorestart service Bittorrent after fall.
http://forum.buffalo.nas-central.org/viewtopic.php?f=81&t=44489
Page 1 of 1

Author:  Antonas [ Sun Aug 06, 2017 9:03 am ]
Post subject:  LS421DE FW 1.34 autorestart service Bittorrent after fall.

Image

Code:
# vi /etc/cron/cron.d/bt_restart.sh

create
Code:
pgrep -f "[b]tdog" | xargs kill
pgrep "[b]t" || /etc/init.d/bittorrent.sh restart
renice -n 19 `pgrep "[b]t"`

Code:
# chmod +x /etc/cron/cron.d/bt_restart.sh
# crontab -e

add line
Code:
*/5 * * * * /etc/cron/cron.d/bt_restart.sh

Reboot NAS

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/