Info Add a scheduling to QuickConnect

Currently reading
Info Add a scheduling to QuickConnect

36
10
NAS
DS218+ DSM 6.2.2-24922-4
Router
  1. RT2600ac
Hey,

This need testing but is working for me.

- Config your quickconnect.
- Go to Task scheduler.
- Created a user defined script.
- Config your time,.....
- To stop quickconnect, use
Code:
synoservice --stop synorelayd
- To start quickconnect, use
Code:
synoservice --start synorelayd
- Hit OK
 
58
14
NAS
DS918+ DS218 (for replication only)
Wow! The simplicity if the solution is blowing my mind! :oops:
Testing it as we speak and so far it's working wonders
Note: You can test QuickConnect status with : synorelayd -s at a SSL prompt
It reports "state: connected" when started, "state: not_running" when stopped.
Congrats! (y):)
 
2
0
Operating system
  1. macOS
Hi. Unfortunately this does not work anymore with DSM 7. They switched to synosystemctl, but I can't get it to work.
Does anyone know how to start and stop quickconnect with synosystemctl ? Thank you.
 

fredbert

Moderator
NAS Support
Subscriber
4,201
1,672
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
  3. RT6600ax
Operating system
  1. macOS
Mobile operating system
  1. iOS
Started by looking at synorelayd by printing out the help text. I see that this command has more option so if you want to stop it you can use sudo synosystemctl stop synorelayd but maybe consider using synorelayd itself to switch QC on and off?

Bash:
$ synorelayd --help
Copyright (c) 2003-2014 Synology Inc. All rights reserved.
Usage: synorelayd [options] [actions]
Actions:
  default action                     start daemon
  -h, --help                         show this help message
  -v, --version                      show version info
  -k, --kill                         kill running daemon
  -s, --status                       get running status
  -L, --smartdns                     run smartDNS Let's encrypt process
  -U, --hup                          hup (reload configs)
  -a, --add [service]                add service for relay
  -r, --remove [service]             remove service for relay
  -c, --support [on|off|status]      support channel operations
  -q, --quickconnect [on|off|status] quickconnect operations
  -p, --portal-url                   get portal url
  -i, --getip                        get real client ip
  -t, --detect-router                detect router for upnp
  -f, --port-forward                 add port forward rules
  -F, --check-failover               check failover, return == 0 if failover is enabled.
  -b, --broadcast [up|down]          broadcast the DS boot state
  -R, --reopen                       reopen the log file
Options:
  -C, --config [file]                read config from file
  -d, --debug                        enable debug mode. will not run in background
  -P, --pid-file [file]              set pid file for daemon
  -g, --source-ip [ip]               remote source ip
  -n, --source-port [port]           remote source port

These seem to work when I look in Control Panel -> External Access -> QuickConnect:
Bash:
$ synorelayd --quickconnect=status
<on|off>
$ sudo synorelayd --quickconnect=on
$ sudo synorelayd --quickconnect=off

If you use a scheduled User-Defined Script that is assigned to run as 'root' then you won't need the sudo command prefixing the syno... commands.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Top