If I add more virtual sites on my 604T NAS beyond the built-in maximum of 8 (ASUSTOR Pls expand !);
will they remain after a reboot ? After a Reset ? If not, how do I backup & reload the additional definitions ?
It is currently Mon Jan 18, 2021 6:25 am
All times are UTC + 8 hours
#!/bin/sh
#######################################################################################
# This script tests to make sure the Plex Media Server application is running on #
# your Asustor NAS. If it is the script exits and does nothing. If not it will #
# stop Plex Media Server to clear any residual porcesses and then start Plex Media #
# Server. #
# --------------------------------------------------------------------------------- #
# You can change this to test for remote access by changing the localhost to the #
# DNS name of your NAS. Ex: If you use Asustor's DDNS service it would be something #
# like http://yourddnsname.myasustor.com: If you ,apped Plex Media Server to #
# another port other than than 32400 you will need to edit the script below to #
# that port number. #
# --------------------------------------------------------------------------------- #
# This can be used to test operation of any app that has a web page for accessing #
# the app itself. If the app is a stand alone app and doesn't use a web page #
# this check will not work. There are other ways to check their operations. #
# --------------------------------------------------------------------------------- #
# Visit http://forum.asustor.com/index.php and ask MikeG.6.5 for any support issues #
#######################################################################################
curl -I -m 8 "http://localhost:32400/web/index.html"
if [ "$?" -ne "0" ]
then
/usr/sbin/syslog --log 0 --level 0 --user admin --event "Remote Access to Plex is unavailable"
/usr/local/AppCentral/plexmediaserver/CONTROL/start-stop.sh stop
sleep 5
/usr/local/AppCentral/plexmediaserver/CONTROL/start-stop.sh start
fi
exit 0
##############################################################################################
# This is the cron file and is used to tell the NAS to do things within certain time frames #
# or specific times of the day. It has a very specific syntax of how to do the timing. #
# Refer to the chart below for examples of what the timings are. This file is located at #
# /volume0/usr/builtin/etc/crontabs/root. You will need WinSCP or another shell client #
# to access or edit this file. #
# ---------------------------------------------------------------------------------------- #
# Example: */20 * * * * command every 20 minutes starting on the hour execute the #
# command. 0 0 * * * command means execute the command at midnight. #
##############################################################################################
# .---------------- minute (0 - 59) #
# | .------------- hour (0 - 23) #
# | | .---------- day of month (1 - 31) #
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... #
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat #
# | | | | | #
# * * * * * user-name command to be executed #
##############################################################################################
*/15 * * * * /volume1/misc/CkApps.sh
*/20 * * * * /volume1/misc/Movies-Convert/movie-convert.sh
0 0 * * 1,2,3,4,5,6,7 /usr/builtin/sbin/nightmodectrl on
0 5 * * 1,2,3,4,5,6,7 /usr/builtin/sbin/nightmodectrl off
30 0 * * * /bin/sh /usr/builtin/sbin/ntpupdate.sh north-america.pool.ntp.org
Users browsing this forum: No registered users and 0 guests