I kindly request anybody of the bests to:
1. Kindly show how can we run Meteor 1.4 and Mongo in asustor NAS. Step by step guide.
2. How can we access that localhost:3000 from the Network.
Regards
Amit.
It is currently Fri Mar 05, 2021 10:01 pm
All times are UTC + 8 hours
#!/bin/sh
curl -I -m 8 "localhost:port/userlogin";
if [ "$?" -ne "0" ]
then
/usr/sbin/syslog --log 0 --level 0 --user admin --event "PlexRequests isn't running: Starting it"
exec nohup mono /volume1/misc/plexrequests/PlexRequests.exe &
fi
exit 0
*/5 * * * * /volume1/misc/ChkPlexRequests.sh
#!/bin/sh
### BEGIN INIT INFO
# Provides: PlexRequests.net
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: PlexRequests.net
# Description: PlexRequests.net
### END INIT INFO
# Documentation available at
# http://refspecs.linuxfoundation.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html
# Debian provides some extra functions though
. /lib/lsb/init-functions
USER=admin
GROUP=administrators
DAEMON_NAME="PlexRequests"
DAEMON_USER="${USER}:${GROUP}"
DAEMON_PATH="/usr/local/bin/mono"
DAEMON_PACK_PATH="/volume1/misc/PlexRequests"
DAEMON_OPTS=${DAEMON_PACK_PATH}/PlexRequests.exe
DAEMON_PWD="/volume1/misc/PlexRequests/"
DAEMON_DESC=$(get_lsb_header_val $0 "Short-Description")
DAEMON_PID=${DAEMON_PACK_PATH}/PlexRequests.pid
DAEMON_NICE=0
DAEMON_LOG='/volume1/misc/PlexRequests/PlexRequests.log'
[ -r "/etc/default/${DAEMON_NAME}" ] && . "/etc/default/${DAEMON_NAME}"
do_start() {
local result
pidofproc -p "${DAEMON_PID}" "${DAEMON_PATH}" > /dev/null
if [ $? -eq 0 ]; then
log_warning_msg "${DAEMON_NAME} is already started"
result=0
else
log_daemon_msg "Starting ${DAEMON_DESC}" "${DAEMON_NAME}"
touch "${DAEMON_LOG}"
chown $DAEMON_USER "${DAEMON_LOG}"
chmod u+rw "${DAEMON_LOG}"
if [ -z "${DAEMON_USER}" ]; then
start-stop-daemon -S --background --quiet --chuid "${DAEMON_USER}" --user "${USER}" --pidfile "${DAEMON_PID}" --make-pidfile --exec "$DAEMON_PATH" -- "$DAEMON_OPTS"
result=$?
else
start-stop-daemon -S --background --quiet --chuid "${DAEMON_USER}" --user "${USER}" --pidfile "${DAEMON_PID}" --make-pidfile --exec "$DAEMON_PATH" -- "$DAEMON_OPTS"
result=$?
fi
log_end_msg $result
fi
return $result
}
do_stop() {
local result
pidofproc -p "${DAEMON_PID}" "${DAEMON_PATH}" > /dev/null
if [ $? -ne 0 ]; then
log_warning_msg "${DAEMON_NAME} is not started"
result=0
else
log_daemon_msg "Stopping ${DAEMON_DESC}" "${DAEMON_NAME}"
killproc -p "${DAEMON_PID}" "${DAEMON_PATH}"
result=$?
log_end_msg $result
rm "${DAEMON_PID}"
fi
return $result
}
do_restart() {
local result
do_stop
result=$?
if [ $result = 0 ]; then
do_start
result=$?
fi
return $result
}
do_status() {
local result
status_of_proc -p "${DAEMON_PID}" "${DAEMON_PATH}" "${DAEMON_NAME}"
result=$?
return $result
}
do_usage() {
echo $"Usage: $0 {start | stop | restart | status}"
exit 1
}
case "$1" in
start) do_start; exit $? ;;
stop) do_stop; exit $? ;;
restart) do_restart; exit $? ;;
status) do_status; exit $? ;;
*) do_usage; exit 1 ;;
esac
#!/bin/sh
#######################################################################################
# This script tests to make sure the PlexRequests.net application is running on your #
# Asustor NAS. If it is the script exits and does nothing. If not it will restart #
# PlexRequests as a daemon so the app is always running. This app is usefull #
# because you can set it to monitor your HDD space, and view recently added shows #
# and movies within Plex. #
# --------------------------------------------------------------------------------- #
# 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 are using PlexRequests.net on #
# another port than 3579 you will need to edit the script below to reflect the 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 "localhost:3579/userlogin";
if [ "$?" -ne "0" ]
then
/usr/sbin/syslog --log 0 --level 0 --user admin --event "PlexRequests isn't running: Starting it"
/volume1/misc/PlexRequests2.sh restart
fi
exit 0
*/15 * * * * /volume1/misc/ChkPlexRequests.sh
Users browsing this forum: No registered users and 2 guests