Koozali.org: home of the SME Server
Other Languages => Italiano => Topic started by: simone686 on October 27, 2022, 02:48:19 PM
-
Hi all
i have created a custom bash script and i wish i could launch it on boot....
normally i edited /etc/crontab or crontab -e @reboot /yyy/zzz/abc.sh
is there a safe ways to do this ?
Thanks
-
First, consider what you are trying to do and why.
Is it really necessary? What are you trying to achieve?
Explain a little more.
The instant answer is templates. But first think about the comments above.
Then please read the manual.
https://wiki.koozali.org/Cron_entry
https://wiki.koozali.org/Template-driven_configuration_system
https://wiki.koozali.org/SME_Server:Documentation:Developers_Manual:Chapter8
Etc.
-
Why not use /etc/rc.d/rc.local ? I works for me...
-
normally i edited /etc/crontab or crontab -e @reboot /yyy/zzz/abc.sh
I used crontab @reboot... on SME7 - SME9 without any problems.
I am not using it on SME 10 because I have not re-established the service I was starting in SME9 - but I would expect it to work.
-
Still be nice to know what the OP was trying to achieve.
Often it is the start of an XY Info issue :-)