You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



[solved] Script to Start at Booting and start at shutdown

Author (Read 7052 times)

0 Members and 1 Guest are viewing this topic.

Re: [solved] Script to Start at Booting and start at shutdown
« Reply #6 on: June 06, 2017, 03:39:17 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
"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
 

Re: [solved] Script to Start at Booting and start at shutdown
« Reply #5 on: June 06, 2017, 01:12:05 PM »
 

walterwhite

  • New to Forums
  • *
  • 3
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: Intel i7

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA
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
« Reply #4 on: June 01, 2017, 09:39:27 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
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

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
 

Re: [solved] Script to Start at Booting and start at shutdown
« Reply #3 on: June 01, 2017, 05:50:14 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
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
« Reply #2 on: June 01, 2017, 05:25:56 AM »
 

walterwhite

  • New to Forums
  • *
  • 3
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: Intel i7

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA
Bump...
Nobody knows?
Realy?  :(
 

[solved] Script to Start at Booting and start at shutdown
« Reply #1 on: May 30, 2017, 02:57:47 PM »
 

walterwhite

  • New to Forums
  • *
  • 3
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: Intel i7

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA
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: [Select]
#!/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: [Select]
/etc/rc.local nothing happens.

I activate rc.local with
Code: [Select]
sudo systemctl edit --full rc-local
and edit the file, adding:
Code: [Select]
[Install]
WantedBy=multi-user.target

Activate:
Code: [Select]
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.
« Last Edit: June 06, 2017, 01:12:34 PM by walterwhite »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section