LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-20-2021, 01:21 AM   #16
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053

Quote:
Originally Posted by michaelk View Post
As a FYI the systemd rc-local.service still exists in debian 11.
As pointed out in post #9.
 
Old 09-20-2021, 06:32 AM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,717

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Quote:
dedec0 posted,
Right now, i am using Debian 9. But it should be soon updated to Debian 11. So, the solution should work on both.

What do you say?
Quote:
FWIW, on Debian 9, /etc/rc.local Should(tm) still work.
Only half pointed out... Unless I misunderstood your post.
 
Old 09-20-2021, 06:45 AM   #18
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
I just posted, by mistake, the questions i wanted here, in another thread

The questions are:

- How the "one shot" thing was found documented? Where i read (the official place, pointed here), does not talk about that.

- How to make a file that execute a series of commands? Is this possible? I do not see it in existing files.

So, from everything shown by you, i still do not understand these 2 things. This is why i wrote "No answers or comments?".

And about using rc.local, i will think about not using it, since it can be removed in the near future.
 
Old 09-20-2021, 07:14 AM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,717

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Here is a good explanation of service types.
https://trstringer.com/simple-vs-one...stemd-service/

The service calls an executable bash script.
 
Old 09-20-2021, 12:28 PM   #20
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,604

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
Quote:
Originally Posted by dedec0 View Post
How the "one shot" thing was found documented? Where i read (the official place, pointed here), does not talk about that.
Type=oneshot is documented in man systemd.service

Quote:
How to make a file that execute a series of commands? Is this possible?
You mean a shell script?

 
1 members found this post helpful.
Old 09-20-2021, 03:30 PM   #21
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
Thumbs up

Quote:
Originally Posted by boughtonp View Post
Type=oneshot is documented in man systemd.service
Indeed, it has. I will read this manual carefully.


Quote:
Originally Posted by boughtonp View Post
You mean a shell script?
No. A script is something that can do it, but i do not want to write and save scripts for everything, every set of commands i can want to execute during the boots.
 
Old 09-22-2021, 02:10 AM   #22
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Doesn't this method work? https://wiki.debian.org/WiFi/HowToUse#Using_ifupdown
 
Old 09-22-2021, 06:03 AM   #23
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
123

Last edited by dedec0; 09-23-2021 at 08:12 PM.
 
Old 09-22-2021, 08:36 AM   #24
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,717

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
dedec0, I believe cynwulf was responding to the original question i.e. running ifup in a startup script and while you had a posted a followup question the thread has now been hijacked. I assume that cynwulf was not paying attention.
 
Old 09-22-2021, 01:03 PM   #25
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
Quote:
Originally Posted by michaelk View Post
dedec0, I believe cynwulf was responding to the original question i.e. running ifup in a startup script and while you had a posted a followup question the thread has now been hijacked. I assume that cynwulf was not paying attention.
Indeed. I found this thread for its title, and it *is* something that would not be much different from what i am searching:

"[SOLVED] Launch script at startup"

But i have reread the first post, now, and it is about network things, and *this* "detail" is much related to what cynwulf posted.

Can you delete the post where i answered cynwulf? And for the thread title, it is not highjacked. But what has been solved (or what was solved before i posted here) is not what the title points to, is it? Can you change the thread title, and put a comment about the change?
 
  


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
[SOLVED] Need assistance writing a script to launch at startup rockymtngeek Linux - Newbie 20 01-25-2017 05:44 AM
How to launch PHP script at startup on RHEL? sneakyimp Linux - Newbie 3 05-15-2013 06:55 PM
[SOLVED] how to launch different application on startup julybrownie Linux - Newbie 2 08-15-2012 12:10 PM
Howto launch script at startup sendas4 Linux - Newbie 2 03-10-2005 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:24 AM.

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