LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2016, 06:42 AM   #1
eco_bach
Member
 
Registered: Dec 2016
Posts: 242

Rep: Reputation: Disabled
Delay startup of application after boot


Hi
Using this application to enable my firewall on startup, adding it to my startup applications

http://gufw.org/

But I'd like to delay startup of this app for 2-3 minutes
Is there any way to do this?
 
Old 12-14-2016, 07:15 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,744

Rep: Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924
Gufw is a frontend to ufw which is disabled by default. You can enable ufw using the command sudo ufw enable

Gufw does not need to be running for the firewall to be active. Why do you need a delay?
 
Old 12-14-2016, 08:03 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
well if you want to delay it. Do not have it start up on boot, but have boot, or a file such as .xinitrc call a script that will start it instead, when user logs in, or just after system boots to a login screen, the first being a better choice, then within that script that is say for example, .xinitrc gets called at log in (depending on the system) then it calls the script that will put a wait state in the start of said script for 2 to 3 minutes before it starts the program.

sleep x Amount of time.
execute the program

if you do not use this methodology for this program, it will still work for other things needing the same thing. Because it is methodology that is being applied here. Not a programming language per se'

Last edited by BW-userx; 12-14-2016 at 08:16 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make an application startup on boot time and instantly minimize? silvyus_06 Linux - Software 6 11-13-2010 02:21 PM
Delay startup script until 15 minutes after boot... ddenton Linux - Server 6 08-12-2008 08:16 PM
why does eth01 fail on startup and delay startup? infantpenguin Linux - Newbie 3 01-28-2005 10:45 AM
Application delay when ppp is up nannilongari Linux - Networking 1 10-12-2004 05:58 AM
unexpected application delay maxgsp Linux - Software 1 06-08-2004 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration