HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //usr/syno/bin/syno_dc_ctrl_adapter.sh
#!/bin/sh
# Copyright (c) 2003-2014 Synology Inc. All rights reserved.

# This is used for DC output scheduled tasks.


SERVICE_CTRL=/usr/syno/sbin/synoservicectl
SERVICE_NAME=dc-output

/usr/syno/sbin/synoservice --is-enabled $SERVICE_NAME
[ $? -eq 0 ] && exit 0

case "$1" in
	"on")
		$SERVICE_CTRL --start $SERVICE_NAME
		;;
	"off")
		$SERVICE_CTRL --stop $SERVICE_NAME
		;;
	"reset")
		$0 off
		sleep 3
		$0 on
		;;
esac