LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Script to Start at Booting and start at shutdown
#1
Hello Everybody,

I have a little problem. I try to figure out, how it's go, but i failed.  Sad

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

PATH=/usr/bin

grive -p /home/walter/Google_Drive/ >/dev/null 2>&1

exit 0

If I try to start the script via
Code:
/etc/rc.local
nothing happens.

I activate rc.local with
Code:
sudo systemctl edit --full rc-local

and edit the file, adding:
Code:
[Install]
WantedBy=multi-user.target

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.
Reply
#2
Bump...
Nobody knows?
Realy?  Sad
Reply
#3
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

Reply
#4
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...-shutdown/


https://askubuntu.com/questions/607496/h...c-on-login


https://askubuntu.com/questions/92218/ho...om-suspend

LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
Reply
#5
Hi there,

the problem was to wait until wlan is start up.
This was a duration to 60 seconds..
"sleep" was the winner. :-)

THX
Reply
#6
(06-06-2017, 05:12 PM)walterwhite link Wrote: "sleep" was the winner. :-)

Glad its sorted!!!
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)