Location of root crontab?

Havock2

Dabbler
Joined
Apr 15, 2016
Messages
25
I'm trying to find the location of the root users crontab. I'm assuming that this is the one used by the web GUI. If not, I would like to find that crontab.

I would like to add a command to be run at boot.

My cats like to hit the power button on my machine. The command is not save between boots.

Code:
@Reboot sysctl hw.acpi.power_button_state=NONE


The system crontab, at /etc/crontab, is reset to the FreeNAS default at every reboot.
 
Last edited:

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Why do you want to do this via crontab? Just set it as a tunable.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
You create and edit scheduled tasks in the GUI. There's no other way.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
You don't want to do that. Set it as a tunable.
For what the OP asked, I agree completely.
For the thing that is being done, it's much simpler to just disconnect the power switch. I did that with my servers when my kids were pushing buttons.
 

Havock2

Dabbler
Joined
Apr 15, 2016
Messages
25
Is this correct?

1556217222582.png
 
Top