![]() |
[solved] Script to Start at Booting and start at shutdown - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: Hardware - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=6) +--- Forum: Start up and Shutdown (https://www.linuxliteos.com/forums/forumdisplay.php?fid=27) +--- Thread: [solved] Script to Start at Booting and start at shutdown (/showthread.php?tid=4105) |
[solved] Script to Start at Booting and start at shutdown - walterwhite - 05-30-2017 Hello Everybody, I have a little problem. I try to figure out, how it's go, but i failed. ![]() Summary: I use google drive and want to synchronize my local folder with grive. If I start the script manually, there is no problem. It runs. Script: Code: #!/bin/sh If I try to start the script via Code: /etc/rc.local I activate rc.local with Code: sudo systemctl edit --full rc-local and edit the file, adding: Code: [Install] Activate: Code: sudo systemctl reenable rc-local After reboot, there is no synchronize. I don't know, whats wrong... How can I start a script, which needs a few seconds to run after booting? Thanks! Regards walter I using the newest Linux Lite 64 Bit. Re: [solved] Script to Start at Booting and start at shutdown - walterwhite - 06-01-2017 Bump... Nobody knows? Realy? ![]() Re: [solved] Script to Start at Booting and start at shutdown - Valtam - 06-01-2017 Please be patient. This is a beginners operating system. What you are attempting to do is not something your average beginner would tackle. If someone has expert knowledge in this area, they will help you. We are a friendly community full of people who are willing to help others. Sent from my Mobile phone using Tapatalk Re: [solved] Script to Start at Booting and start at shutdown - firenice03 - 06-01-2017 Hopefully this info will aide until an expert comes along...??.. As I'm no expert :o Thinking if the script is running at boot but running too early in the boot process (say prior to NIC initialization) perhaps adding "sleep xxx" to the script to allow it to wait for a determined amount of time..? Another thought is that the script may need to run after login... Info that may help get you in the right direction... These are mostly examples https://shabirimam.wordpress.com/2009/03/10/adding-script-to-run-at-startup-or-shutdown/ https://askubuntu.com/questions/607496/how-to-run-a-bash-script-after-20-sec-on-login https://askubuntu.com/questions/92218/how-to-execute-a-command-after-resume-from-suspend Re: [solved] Script to Start at Booting and start at shutdown - walterwhite - 06-06-2017 Hi there, the problem was to wait until wlan is start up. This was a duration to 60 seconds.. "sleep" was the winner. :-) THX Re: [solved] Script to Start at Booting and start at shutdown - firenice03 - 06-06-2017 (06-06-2017, 05:12 PM)walterwhite link Wrote: "sleep" was the winner. :-) Glad its sorted!!! |