Skip to content

Qnap nas auto power off script.威联通Nas配合非管理UPS自动关机脚本

License

Notifications You must be signed in to change notification settings

fengmlo/Qnap-auto-power-off

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qnap-auto-power-off

Qnap nas auto power off script.威联通Nas配合非管理UPS自动关机脚本 博客地址:https://www.jianshu.com/p/e0beeeff3138

  1. 将文件都放在第一块硬盘的software目录下,修改修改auto_power_off.py文件中routerAddress为你的路由地址
  2. start_check_power.sh添加运行权限
  3. 设置定时任务,编辑/etc/config/crontab添加以下规则:
*/2 * * * * /usr/local/bin/python /share/CACHEDEV1_DATA/software/auto_power_off_deamon.py
  1. 执行crontab /etc/config/crontab && /etc/init.d/crond.sh restart重启crontab
  2. Enjoy!

About

Qnap nas auto power off script.威联通Nas配合非管理UPS自动关机脚本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published