You are not logged in.

#1 2015-03-12 19:06:41

AcousticBruce
Member
Registered: 2015-03-03
Posts: 64

Destroyed init.d (I break things on accident and fix them on purpose)

so I was trying to make a startup script and in the process I deleted init.d

I created a script called net_load
i then tried to move it to the init.d directory like this.

 # mv /home/net_load /etc/init.d

I am pretty sure I screwed up as soon as I hit return...

So, I have a couple options... create a new VM and reinstall Arch Linux (pretty easy, but not much of a learning experience)
Or I can learn how to target this folder and its contents and retrieve it (much better because there is a learning experience).

Can you be so kind and help me figure out how to get init.d back?

Offline

#2 2015-03-12 19:09:26

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Destroyed init.d (I break things on accident and fix them on purpose)

Arch hasn't supported /etc/init.d in a number of years...


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2015-03-12 19:09:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,561
Website

Re: Destroyed init.d (I break things on accident and fix them on purpose)

Ah ... what?  Is this archlinux?  Are you using an alternative init system?

/etc/init.d hasn't existed in archlinux in quite a long time (maybe a couple years).  If you are using some non-standard init system, that is fine, but we'd need to know which one.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2015-03-12 19:16:51

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: Destroyed init.d (I break things on accident and fix them on purpose)

What was the output when you ran the command. I';m not sure why you think it would have been a problem if the directory had existed.


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#5 2015-03-12 19:28:12

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Destroyed init.d (I break things on accident and fix them on purpose)

In addition to above, if you don't have mv aliased to mv -i you should fix that right away.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#6 2015-03-12 19:36:12

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Destroyed init.d (I break things on accident and fix them on purpose)

Was there ever init.d in Arch? There was rc.d, I guess.

Offline

#7 2015-03-12 19:39:43

AcousticBruce
Member
Registered: 2015-03-03
Posts: 64

Re: Destroyed init.d (I break things on accident and fix them on purpose)

I read in the cores utilites wiki about the aliasing and I will fix mv to mv -iv at once.

Well that probably explains why there was no folder....

Man this learning curve is tough. Sorry guys.

Offline

#8 2015-03-12 19:50:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Destroyed init.d (I break things on accident and fix them on purpose)

No point saying sorry. but can you explain why you thought init.d was there? And why you thought it was the right place for a "startup script"? Are you following some very old documentation instead of the current information available to you in man pages and the wiki?

Jumping in at the deep end is OK, but at least try to be prepared.

Offline

Board footer

Powered by FluxBB