Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

shutdown and startup monthly

As an Amazon Associate, we may earn commissions from qualifying purchases. Learn more...

14
1
NAS
Ds423+
Operating system
  1. Windows
Mobile operating system
  1. Android
Hi everyone, I have a DS423+ NAS connected to a router purchased many years ago.
I would like to automatically set a cycle for turning the NAS on on the 8th of each month and turning the NAS off on the 13th of each month. All automatically. Every month.
All automatically even if I'm away from home. How can I do it?
 
in Control panel | Hardware & power | Power schedule , I only can set a weekly cycle.. I want to set a monthly cycle
 
Last edited:
A scheduled task can shutdown the Synology, but you can't boot a shutdown Synology with a schedules task (because scheduled tasks don't run when the Synology is off).
 
Last edited:
The only option I can think of is:
  1. Set a Power schedule that starts the NAS every day.
  2. Create a "user-defined script" scheduled task that runs at boot to check the date and if the date is not the 8th then shutdown the NAS.
  3. Create another "user-defined script" scheduled task that runs once a day to check the date and if the date is the 13th then shutdown the NAS.
For 2 your user-defined script would be:
Bash:
if [ ! $(date '+%d') = 8 ]; then /usr/syno/sbin/synopoweroff -s; fi

For 3 your user-defined script would be:
Bash:
if [ $(date '+%d') = 13 ]; then /usr/syno/sbin/synopoweroff -s; fi

Both tasks may need to run as root. I can't remember if administrators can run the synopoweroff command.
 
The only option I can think of is:
  1. Set a Power schedule that starts the NAS every day.
  2. Create a "user-defined script" scheduled task that runs at boot to check the date and if the date is not the 8th then shutdown the NAS.
  3. Create another "user-defined script" scheduled task that runs once a day to check the date and if the date is the 13th then shutdown the NAS.
For 2 your user-defined script would be:
Bash:
if [ ! $(date '+%d') = 8 ]; then /usr/syno/sbin/synopoweroff -s; fi

For 3 your user-defined script would be:
Bash:
if [ $(date '+%d') = 13 ]; then /usr/syno/sbin/synopoweroff -s; fi

Both tasks may need to run as root. I can't remember if administrators can run the synopoweroff command.
thank you so much
 
Yes it does, I have it running with DSM7.
 
I just checked cphub in package center in DSM 7 there's 2 versions of APM.
  • Advanced Power Management
  • Advanced Power Management for DSM 7
When I installed APM for DSM 7 it showed a command that needed to be run via SSH so it had permissions to do what it does. Unfortunately the window only showed part of the command.

I had to read /var/packages/AdvancedPowerManagerDSM7/WIZARD_UIFILES/install_uifile to get the full command.
Bash:
sudo cp /var/packages/AdvancedPowerManagerDSM7/conf/privilege.root /var/packages/AdvancedPowerManagerDSM7/conf/privilege

I also had to delete /var/packages/AdvancedPowerManagerDSM7/start.failed to stop package center showing APM needed repairing.

Then I got a list of 20 perl Symbol.pm errors

1737367434945.webp


After that it seemed to run okay.
 
I only installed the APM package and did in PuTTY the sudo cp thing, after that it was running well.
 
Hi everyone.
I cannot download APM from Home & News | Community Package Hub.
Probably only members can do this, but unfortunately it is no longer possible to join.
However, I can download APM from here:
Advanced Power Manager
hoping that it works with DSM 7 because I have read conflicting opinions online.


@007revad
with "Set a Power schedule that starts the NAS every day" you mean to set a schedule like this:
(I apologize for the system language which is not English)

Screenshot 2025-01-20 182929.webp




Screenshot 2025-01-20 1830231.webp
 
I would like the NAS to be turned on from day 8 to day 13..
and off from the 13th to the 8th of the following month. This automatically happens every month
 
I also tried to install APM.. but I stopped because I didn't understand where to insert this command:
sudo cp /var/packages/AdvancedPowerManagerDSM7/conf/privilege.root /var/packages/AdvancedPowerManagerDSM7/conf/privilege
 
with "Set a Power schedule that starts the NAS every day" you mean to set a schedule like this:
Yes.

To install "Advanced Power Manager for DSM 7":
  1. Open Package Center.
  2. Click on Settings then Package Sources then Add, and enter the same as the image below and click OK then OK.
  3. You'll then have cphub as package source in package center when you click on Community.
Step 2
1737421044854.webp


Step 3
1737421186493.webp
 
Last edited:
That's the same software as I already wrote in my reply #7 so, downloaded here: Advanced Power Manager for Synology NAS
And he did, the only thing now, he needs to run the command in PuTTY:
Code:
sudo cp /var/packages/AdvancedPowerManagerDSM7/conf/privilege.root /var/packages/AdvancedPowerManagerDSM7/conf/privilege

Unless, he did not deselect run after installation !

So:

1 - Make sure SSH Service is enabled in DSM: Control Panel > Terminal. (don't change port 22)
2 - Download PuTTY
3 - Run putty.exe
4 - Enter your NAS IP address
5 - Make sure SSH is checked
6 - Save....enter a name in "Saved Sessions"
7 - Click Open
8 - You will get Putty screen with "login as:"
9 - Enter: admin or the user with admin rights <enter> (PS: you will not see the cursor move).
10 - Password: <password of user (dot 9)> <enter>
11 - Copy and past (in PuTTY past is right click mouse) the code to run <enter>
12 - Password will be asked: same password as in point 9 <enter>

When done, close PuTTY and Disable SSH Control Panel > Terminal.
 
Hi everyone. I've been a little busy and haven't been able to install APM.
Today I finally succeeded. Thanks everyone for the advice.
The only thing is that it is not easy to enter a command. Is there an explanatory guide somewhere to configure the program?
I would like the NAS to turn on every 8th of the month at 00.00 and turn off on the 13th of every month at 24.00.
Therefore the NAS will be turned on continuously from day 8 to day 13 and will be turned off continuously from day 13 until day 8 of the following month.

P.S. If a Snapshot Replication is scheduled on a day when the NAS is turned off, will the replication run AUTOMATICALLY as soon as the NAS turns on?
 
24:00 is 00:00 so you'd need to use 23:59. But you can set both power off and power on to 00:00 because they aren't both going to trigger on the same day.

1738086365913.webp


1738086381620.webp


I suspect snapshot replication would skip any missed snapshots and only run the next time it's scheduled to.
 
thank you so much.
I thought the command line would be more complex but it's quite intuitive.
If I wanted to add the following schedule: the NAS turns on on the first and last Wednesday of the month, from 00.00 to 23.59, how could I do it?

p.s. once I have set the command, I turn off the NAS without obviously unplugging it. Will the NAS Power Cycle begin automatically?
 

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. ESXi is a VM on the NAS or a dedicated machine on the network?
Replies
1
Views
438
Though hurricane Helene prevented any results last month….. Right on schedule They All arrived...
Replies
78
Views
3,342

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Trending content in this forum

Back
Top