| Server IP : 193.86.120.172 / Your IP : 216.73.216.67 Web Server : Apache/2.4.63 (Unix) System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64 User : kubec ( 1026) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib64/systemd/scripts/ |
Upload File : |
#!/bin/bash
PreStart() {
env MaxWatches=8192
env MaxQueueEvents=163840
SupportS2S=`/bin/get_key_value /etc.defaults/synoinfo.conf support_s2s` || true
if [ "yes" = "${SupportS2S}" -o "YES" = "${SupportS2S}" ]; then
MaxWatches=`/bin/get_key_value /etc.defaults/synoinfo.conf s2s_watches_max` || true
if [[ -n "$MaxWatches" ]]; then
echo $MaxWatches > /proc/sys/fs/inotify/max_user_watches || true
echo $MaxQueueEvents > /proc/sys/fs/inotify/max_queued_events || true
fi
else
exit -1
fi
echo "Starting s2s_daemon"
}
PostStop() {
echo "Stopped s2s_daemon"
}
Execute() {
/usr/syno/bin/s2s_daemon -d
}
case $1 in
pre-start)
PreStart
;;
post-stop)
PostStop
;;
execute)
Execute
;;
esac
exit 0