F4-223 Reboot Command Line ?

This forum serves as a free discussion zone, intended to facilitate community conversations on topics unrelated to TerraMaster products and services.
Post Reply
User avatar
digi999
Posts: 7
Joined: 23 Feb 2023, 04:20

F4-223 Reboot Command Line ?

Post by digi999 »

Hi there

I'm wanting to set a scheduled reboot (not a power down , an actual reboot) , found the scheduler no problem but its asking for a custom command , would I be right in assuming its

Sudo Reboot

Or isn't that the reboot command for this NAS ?

Many thanks in advance
User avatar
TMLyy
TerraMaster Team
Posts: 109
Joined: 01 Jun 2022, 18:36

Re: F4-223 Reboot Command Line ?

Post by TMLyy »

Just enter reboot directly.
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
digi999
Posts: 7
Joined: 23 Feb 2023, 04:20

Re: F4-223 Reboot Command Line ?

Post by digi999 »

It doesn't have reboot in the scheduled tasks or am I missing something ?

in 'Create Scheduled Tasks' there is 'triggered scheduled tasks' and in there is just the options to shut down or start up , so I'd assumed it was 'custom scheduled task' which is asking for a CLI command ?
User avatar
Gremlin
Posts: 459
Joined: 02 Dec 2022, 22:31
Great Britain

Re: F4-223 Reboot Command Line ?

Post by Gremlin »

You need to use "Customize" and enter a standard command line command.

I think what TMSupport are saying is that you don't need the 'sudo'. Not clear what version of TOS you are running but in 5+ sudo does not work (because root user in prohibited).
F5-221 5.1.123, 8GB System Partition on 3 x 4TB Traid; 3TB EXT4
F2-221 TOS6 (Beta), 8GB System Partition on 2 x 6TB in Traid. (Latest Update 11/04/24)
User avatar
digi999
Posts: 7
Joined: 23 Feb 2023, 04:20

Re: F4-223 Reboot Command Line ?

Post by digi999 »

aahhhhh sorry ! , I just assumed it was standard linux commands , so in the 'customize' section the custom command is literally just 'reboot' ? , ie , thats it and save ?
User avatar
Gremlin
Posts: 459
Joined: 02 Dec 2022, 22:31
Great Britain

Re: F4-223 Reboot Command Line ?

Post by Gremlin »

I guess. As long as you are logged in as an admin user and have permissions. This is one custom script I use to find and delete old files/folders for my surveillance system:

Code: Select all

find /Volume2/IPCAM/ -name P*.jpg -mtime +6 -print -delete
find /Volume2/IPCAM/ -name A*.jpg -mtime +120 -print -delete
find /Volume2/IPCAM/ -type d -empty -print -delete
find /Volume2/DVR/ -name *.storage -mtime +120 -print -delete
find /Volume2/DVR/ -type d -empty -print -delete
and I set it to email the results on completion.
F5-221 5.1.123, 8GB System Partition on 3 x 4TB Traid; 3TB EXT4
F2-221 TOS6 (Beta), 8GB System Partition on 2 x 6TB in Traid. (Latest Update 11/04/24)
Post Reply

Return to “Lounges”