Действия

QNAP: различия между версиями

Материал из lulzette's wiki

Нет описания правки
Нет описания правки
Строка 1: Строка 1:
== Version of D2? ==
/etc/hal.conf:
<source>
model = TS-231P
</source>
== chroot ==
== chroot ==



Версия от 08:02, 25 мая 2020

Version of D2?

/etc/hal.conf:

model = TS-231P

chroot

#!/bin/bash

cpath="/share/Container/container-station-data/lib/lxc/playground/rootfs"

mount --bind /dev $cpath/dev
mount --bind /sys $cpath/sys
mount --bind /proc $cpath/proc
mount --bind / $cpath/mnt

chroot $cpath

umount $cpath/dev
umount $cpath/sys
umount $cpath/proc
umount $cpath/mnt

Default Crontab

[~] # crontab -l
# m h dom m dow cmd
0 3 * * 0 /etc/init.d/idmap.sh dump
0 3 * * * /sbin/vs_refresh
0 3 * * * /sbin/clean_reset_pwd
0-59/15 * * * * /etc/init.d/nss2_dusg.sh
30 7 * * * /sbin/clean_upload_file
0-59/10 * * * * /etc/init.d/storage_usage.sh
30 3 * * * /sbin/notice_log_tool -v -R
0-59/20 3 * * * /sbin/adjust_time
*/10 * * * * /sbin/config_cache_util 0
0 23 */1 * * /sbin/qpkg_cli -U 1>/dev/null 2>/dev/null
# 0 0 * * * /usr/local/squid/sbin/squid -k rotate
21 9,21 * * * /sbin/notify_update --nc 1>/dev/null 2>&1
0 1 * * * /etc/init.d/flush_memory.sh >/dev/null 2>&1
10 02 * * * /usr/bin/power_clean -c 2>/dev/null
0 0 1 * * /sbin/hal_event --pd_self_test dev_id=0x00000002,action=2
0 0 1 * * /sbin/hal_event --pd_self_test dev_id=0x00000001,action=2
0 0 * * 1 /sbin/hal_event --pd_self_test dev_id=0x00000002,action=1
0 0 * * 1 /sbin/hal_event --pd_self_test dev_id=0x00000001,action=1
30 6 * * 1 /sbin/storage_util --disk_sequential_read_speed_test 1>/dev/null 2>&1
#0 2 * * * /sbin/qfstrim
0 2 * * 0 /usr/local/medialibrary/bin/mymediadbcmd checkRepairDB  >/dev/null 2>&1
* * * * * /var/cache/netmgr/lock_timer.sh
0 4,16 * * * /sbin/hwclock -s
4 3 * * 3 /etc/init.d/backup_conf.sh
0 12 * * * /mnt/ext/opt/LicenseCenter/bin/qlicense_tool local_check
0 0 * * * /usr/local/sbin/qsh nc.archive >/dev/null 2>&1
29 22 * * * /mnt/ext/opt/QcloudSSLCertificate/bin/ssl_agent_cli