QNAP: различия между версиями
Материал из lulzette's wiki
Losted (обсуждение | вклад) (→init) |
Losted (обсуждение | вклад) (→init) |
||
Строка 69: | Строка 69: | ||
== init == | == init == | ||
rcS - init при включении | |||
rcK - init перед выключением | rcK - init перед выключением | ||
Строка 179: | Строка 179: | ||
#null::shutdown:/usr/bin/killall syslogd | #null::shutdown:/usr/bin/killall syslogd | ||
null::shutdown:/etc/init.d/rcK | null::shutdown:/etc/init.d/rcK | ||
</source> | |||
=== /etc/rcS.d/ === | |||
<source> | |||
QS100helpdesk@ | |||
QS101LicenseCenter@ | |||
QS101MultimediaConsole@ | |||
QS101NotificationCenter@ | |||
QS101QcloudSSLCertificate@ | |||
QS102SSDLaboratory@ | |||
QS103ResourceMonitor@ | |||
QS104PhotoStation@ | |||
QS105QVPN@ | |||
QS106netmgr@ | |||
QS109container-station@ | |||
QS150Qboost@ | |||
QS200helpdesk@ | |||
S30mountall@ | |||
S31init_hardware@ | |||
S32init_mac_addr@ | |||
S33sysinit@ | |||
S34shutdown_check@ | |||
S35init_disk@ | |||
S40init_network@ | |||
S42hostname@ | |||
S45network@ | |||
S45vlan@ | |||
S46iSCSItrgt@ | |||
S46iscsiinit@ | |||
S55urandom@ | |||
S56mariadb@ | |||
S56start_service@ | |||
S57init_qpkg@ | |||
S57ldap@ | |||
S58dbus@ | |||
S58nsswitch@ | |||
S58printer@ | |||
S59Qthttpd@ | |||
S62GQ@ | |||
S62cupsd@ | |||
S62ntpd@ | |||
S62smb@ | |||
S64MediaService@ | |||
S65btd@ | |||
S65thttpd@ | |||
S66ImRd@ | |||
S66wfm_thttpd@ | |||
S67ftp@ | |||
S70crond@ | |||
S72logo@ | |||
S73ntpclient@ | |||
S75stunnel@ | |||
S77recycled@ | |||
S78qraid1@ | |||
S83ups@ | |||
S84bluetooth@ | |||
S85login@ | |||
S89bonjour@ | |||
S89wsd@ | |||
S90twonkymedia@ | |||
S92lunportman@ | |||
S95snmp@ | |||
S98init_nas@ | |||
S99atalk@ | |||
S99cloudinstall_report_complete_daemon@ | |||
S99init_iTune@ | |||
S99mysqld@ | |||
S99nfs@ | |||
S99porter@ | |||
S99qanalytic@ | |||
S99qcloud@ | |||
S99qsnapman@ | |||
S99qstorman@ | |||
S99qsyncman@ | |||
S99sdmd.sh@ | |||
S99sync_action.sh@ | |||
S99z_antivirus@ | |||
</source> | </source> |
Версия от 08:31, 25 мая 2020
Version of D2?
/etc/hal.conf:
model = TS-231P
/etc/model.conf:
[System Enclosure]
VENDOR = QNAP
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
init
rcS - init при включении
rcK - init перед выключением
/etc/daemon_mgr.conf
DAEMON0 = hal_daemon, start, /sbin/hal_daemon -f
DAEMON1 = lvmetad, start, /sbin/lvmetad
DAEMON2 = bcclient, start, /sbin/bcclient
DAEMON3 = qwatchdogd, start, /sbin/qwatchdogd -t 1 &
DAEMON4 = netwatchdog, start, /sbin/netwatchdog -d
DAEMON5 = cs_daemon, start, /sbin/cs_daemon
DAEMON6 = cs_qdaemon, start, /sbin/cs_qdaemon &
DAEMON7 = modagent, start, /sbin/modagent
DAEMON8 = ifd, start, /usr/local/bin/ifd
DAEMON9 = nmd, start, /usr/sbin/nmd.sh
DAEMON10 = qpkgd, start, QNAP_QPKG=appcenter /sbin/qpkgd -d0 > /dev/null 2>&1 &
DAEMON11 = ql_daemon, start, QNAP_QPKG=LicenseCenter /usr/local/bin/ql_daemon -d 7 > /dev/null 2>&1
DAEMON12 = ncdb, start, QNAP_QPKG=NotificationCenter /usr/local/sbin/ncdb --defaults-file=/mnt/ext/opt/NotificationCenter/etc/nc-mariadb.conf >/dev/null 2>&1 &
DAEMON13 = ncloud, start, QNAP_QPKG=NotificationCenter /usr/local/sbin/ncloud
DAEMON14 = ncd, start, QNAP_QPKG=NotificationCenter LD_LIBRARY_PATH=/mnt/ext/opt/mariadb/lib /usr/local/sbin/ncd
DAEMON15 = qdesk_soldier, stop, QNAP_QPKG=helpdesk /sbin/qdesk_soldier
DAEMON16 = proftpd, start, QNAP_QPKG=ftp LD_PRELOAD=/usr/local/lib/libtrash.so TZ=/etc/localtime /usr/local/sbin/proftpd -n > /dev/null 2>&1 &
DAEMON17 = Qthttpd, start, QNAP_QPKG=webserver /usr/local/sbin/Qthttpd -p 80 -nor -nos -u admin -d /home/Qhttpd -c '**.*'
DAEMON18 = cupsd, start, /usr/sbin/cupsd -c /etc/config/cups/cupsd.conf
DAEMON19 = mytranscodesvr, start, QNAP_QPKG=MultimediaConsole TERMINFO='/usr/share/terminfo/' LANG='en_US.UTF-8' /usr/sbin/screen -dmS 'MYTRANSCODE' /usr/local/medialibrary/bin/mytranscodesvr -debug -db /share/CACHEDEV1_DATA/
DAEMON20 = mymedia_cli, start, QNAP_QPKG=MultimediaConsole /usr/local/medialibrary/bin/mymedia_cli -d >/dev/null 2>&1
DAEMON21 = _thttpd_, start, /usr/local/sbin/_thttpd_ -p 58080 -nor -nos -u admin -d /home/httpd -c '**.*' -h 127.0.0.1 -i /var/lock/._thttpd_.pid
DAEMON22 = php-fpm-proxy, start, /usr/local/apache/bin/php-fpm-proxy -y /etc/php-fpm-sys-proxy.conf -p /var/ -c /etc/default_config/php.ini -g /var/lock/php-fpm-proxy.pid -R 1>/dev/null 2>/dev/null </dev/null
DAEMON23 = apache_proxy, start, /etc/init.d/thttpd.sh start_apache >/dev/null 2>&1
DAEMON24 = lpb_scheduler, start, /sbin/lpb_scheduler -d
DAEMON25 = genthd, start, /sbin/genthd&
DAEMON26 = upsutil, start, /usr/sbin/upsutil &
DAEMON27 = ntpdated, start, /usr/sbin/ntpdated
DAEMON28 = sshd, start, /usr/sbin/sshd -f /etc/config/ssh/sshd_config -p 22
DAEMON29 = crond, start, /usr/sbin/crond -l 9 -c /tmp/cron/crontabs
DAEMON30 = rfsd, start, /sbin/rfsd -f /etc/rfsd.conf
DAEMON31 = syslog_maild, stop, QNAP_QPKG=rsyslog /sbin/syslog_maild -d
DAEMON32 = gen_bandwidth, start, /sbin/gen_bandwidth -r -i 5 &
DAEMON33 = klogd.sh, start, /etc/init.d/klogd.sh start &
DAEMON34 = qNoticeEngined, start, /sbin/qNoticeEngined
DAEMON35 = qShield, start, /sbin/qShield
DAEMON36 = qsyslogd, start, QNAP_QPKG=syslog /sbin/qsyslogd
DAEMON37 = qLogEngined, start, QNAP_QPKG=syslog /sbin/qLogEngined
DAEMON38 = qsnapman, start, /usr/bin/qsnapman >/dev/null &
DAEMON39 = qstorman, start, /usr/bin/qstorman >/dev/null &
DAEMON40 = qsyncman, start, QNAP_QPKG=rtrr /usr/bin/qsyncman 1>/dev/null 2>&1
DAEMON41 = porter, start, QNAP_QPKG=myQNAPcloud /usr/local/bin/porter -d 7 > /dev/null
DAEMON42 = qsnapman-alive, start, /usr/bin/qsnapman-alive >/dev/null &
DAEMON43 = pn_daemon, start, QNAP_QPKG=myQNAPcloud /usr/local/bin/pn_daemon -d 7 > /dev/null 2>&1
DAEMON44 = qsnapman-smart, start, /usr/bin/qsnapman-smart >/dev/null &
DAEMON45 = qsnapman-recyc, start, /usr/bin/qsnapman-recyc >/dev/null &
DAEMON46 = upnpcd, start, /sbin/upnpcd -i 300 &
DAEMON47 = upnpd, stop, /sbin/upnpd br0 br0
DAEMON48 = upsd, start, /usr/sbin/upsd -u admin
/etc/inittab
# /etc/inittab
#
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
#
# Note: BusyBox init doesn't support runlevels. The runlevels field is
# completely ignored by BusyBox init. If you want runlevels, use
# sysvinit.
#
# Format for each entry: <id>:<runlevels>:<action>:<process>
#
# id == tty to run on, or empty for /dev/console
# runlevels == ignored
# action == one of sysinit, respawn, askfirst, wait, and once
# process == program to run
# Startup the system
#null::sysinit:/bin/mount -o remount,rw /
#null::sysinit:/bin/mount -t proc proc /proc
#null::sysinit:/bin/mount -a
#null::sysinit:/bin/hostname -F /etc/hostname
#null::sysinit:/sbin/ifconfig lo 127.0.0.1 up
#null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
null::sysinit:/sbin/hwclock --hctosys
# now run any rc scripts
::sysinit:/etc/init.d/rcS
# Set up a couple of getty's
tty1::respawn:/sbin/getty 115200 ttyS0
# Put a getty on the serial port
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
# Logging junk
null::sysinit:/bin/touch /var/log/messages
#null::respawn:/sbin/syslogd -n -m 0
#null::respawn:/sbin/klogd -n
#tty3::respawn:/usr/bin/tail -f /var/log/messages
# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting
#null::shutdown:/usr/bin/killall klogd
#null::shutdown:/usr/bin/killall syslogd
null::shutdown:/etc/init.d/rcK
/etc/rcS.d/
QS100helpdesk@
QS101LicenseCenter@
QS101MultimediaConsole@
QS101NotificationCenter@
QS101QcloudSSLCertificate@
QS102SSDLaboratory@
QS103ResourceMonitor@
QS104PhotoStation@
QS105QVPN@
QS106netmgr@
QS109container-station@
QS150Qboost@
QS200helpdesk@
S30mountall@
S31init_hardware@
S32init_mac_addr@
S33sysinit@
S34shutdown_check@
S35init_disk@
S40init_network@
S42hostname@
S45network@
S45vlan@
S46iSCSItrgt@
S46iscsiinit@
S55urandom@
S56mariadb@
S56start_service@
S57init_qpkg@
S57ldap@
S58dbus@
S58nsswitch@
S58printer@
S59Qthttpd@
S62GQ@
S62cupsd@
S62ntpd@
S62smb@
S64MediaService@
S65btd@
S65thttpd@
S66ImRd@
S66wfm_thttpd@
S67ftp@
S70crond@
S72logo@
S73ntpclient@
S75stunnel@
S77recycled@
S78qraid1@
S83ups@
S84bluetooth@
S85login@
S89bonjour@
S89wsd@
S90twonkymedia@
S92lunportman@
S95snmp@
S98init_nas@
S99atalk@
S99cloudinstall_report_complete_daemon@
S99init_iTune@
S99mysqld@
S99nfs@
S99porter@
S99qanalytic@
S99qcloud@
S99qsnapman@
S99qstorman@
S99qsyncman@
S99sdmd.sh@
S99sync_action.sh@
S99z_antivirus@