I need to run a command at startup on my machine using FreeBSD:
cd /home/portal mv portal.sqlite corrupt_portal.sqlite
This is clearly not a daemon or a service, just a one time command at every boot.
I tried to put a .sh file inside /usr/local/etc/rc.d/ with
#!/bin/bash and it doesn't do anything, I also tried to simply write
If I run both versions manually they work with no problem.
What am I missing here?