Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

root start-up script

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
lolkert
Posts: 2
Joined: 2017-12-21 16:51

root start-up script

#1 Post by lolkert »

Hello,
to make static arp, i use:

Code: Select all

arp -s -i <interface> <mac> <ip>
this needs to be run as root, and i would like to know how can i make a start up script, so that above command runs each time the computer gets turned on?

User avatar
Capitain_Jack
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: root start-up script

#2 Post by Capitain_Jack »

lolkert wrote:Hello,
to make static arp, i use:

Code: Select all

arp -s -i <interface> <mac> <ip>
this needs to be run as root, and i would like to know how can i make a start up script, so that above command runs each time the computer gets turned on?
Here, take a look into this post:
http://forums.debian.net/viewtopic.php?f=30&t=55234

Please, if you feel you issue is solved, please, edit the first message title and add [SOLVED] to the beginning of it, so others can benefit from your solution
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: root start-up script

#3 Post by Head_on_a_Stick »

lolkert wrote:Hello,
to make static arp, i use:

Code: Select all

arp -s -i <interface> <mac> <ip>
this needs to be run as root, and i would like to know how can i make a start up script, so that above command runs each time the computer gets turned on?
http://0pointer.de/blog/projects/system ... ins-3.html
deadbang

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: root start-up script

#4 Post by debiman »

^ i'd rather have pointed to archwiki, e.g.: https://wiki.archlinux.org/index.php/Sy ... unit_files
but yes, i agree, since systemd is already installed and running anyway, it would be the best option here.

Post Reply