You are not logged in.

#1 2013-05-20 20:05:54

Proofrific
Member
Registered: 2008-01-05
Posts: 215

[Solved] Accidentally Deleted /etc/rc.d

I accidentally deleted my /etc/rc.d folder. I'm using systemd, so should I worry about it? I did a `ls` right before the delete, and the files were:

avahi-daemon    functions.d  ip6tables          net-profiles  ntpd     sshd
avahi-dnsconfd  hal          iptables           net-rename    ntpdate  vmware
crond           httpd        net-auto-wired     netfs         ppp      vmware.d
functions       hwclock      net-auto-wireless  network       rfkill   wicd

Last edited by Proofrific (2013-05-20 20:36:44)

Offline

#2 2013-05-20 20:10:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Accidentally Deleted /etc/rc.d

You should regularly backup /etc (and /home tongue), so either way this shouldn't be an issue.

Offline

#3 2013-05-20 20:14:29

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Accidentally Deleted /etc/rc.d

karol wrote:

You should regularly backup /etc (and /home tongue), so either way this shouldn't be an issue.

I back up /usr/local as well since I put my terribly written personal scripts there... including the one I use to back things up.

Offline

#4 2013-05-20 20:25:44

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: [Solved] Accidentally Deleted /etc/rc.d

beyond the advice to have good backups, if you're using a straight systemd, it shouldn't break anything. But to be safe if you don't have current backups you can just reinstall the packages that own those files (which you can figure out with pacman -Qo)

Offline

#5 2013-05-20 20:26:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,665

Re: [Solved] Accidentally Deleted /etc/rc.d

You did it accidentally, I did it on purpose. When you're using systemd, those files are of no use and are now actively being removed from packages. In the very near future, that dir will be totally empty anyway.

Offline

#6 2013-05-20 20:28:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Accidentally Deleted /etc/rc.d

WonderWoofy wrote:
karol wrote:

You should regularly backup /etc (and /home tongue), so either way this shouldn't be an issue.

I back up /usr/local as well since I put my terribly written personal scripts there... including the one I use to back things up.

I have a copy of mine in ~/scripts as I use vim and have set it to keep backups of the files I edit in the same directory as the edited files and this has the drawback of cron running both backup.daily and backup.daily~ ;P
I simply edit scripts in ~/scripts and move them to /etc/cron.daily/ or /usr/local/bin when I'm done.

Offline

#7 2013-05-20 20:36:18

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: [Solved] Accidentally Deleted /etc/rc.d

I just restarted my computer, and everything works fine.

I accidentally deleted /etc/rc.d/ because I was reinstalling vmware player, and I was trying to delete the initscripts. Sadly, `rm -R /etc/rc.d/vmware*` has a very different meaning when there's a space before the asterisk. Haha.

Thanks for the backup tips. I do regularly back up /home, but hadn't thought about backing up /etc.

Offline

#8 2013-05-20 20:40:52

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

Re: [Solved] Accidentally Deleted /etc/rc.d

Sadly, `rm -R /etc/rc.d/vmware*` has a very different meaning when there's a space before the asterisk. Haha.

Just be glad you weren't at / when you did that. I'm sure I read at least one account of that in the "worst computing mistakes" thread.


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

#9 2013-05-20 20:42:36

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: [Solved] Accidentally Deleted /etc/rc.d

Yes, I was already in the /etc/rc.d/ directory when I did it. It would be terrible to do it at /. Facepalm would be so appropriate for that.

Offline

#10 2013-05-20 20:49:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Accidentally Deleted /etc/rc.d

alphaniner wrote:

Sadly, `rm -R /etc/rc.d/vmware*` has a very different meaning when there's a space before the asterisk. Haha.

Just be glad you weren't at / when you did that. I'm sure I read at least one account of that in the "worst computing mistakes" thread.

I recall someone doing

# rm -rf / some/thing

Offline

#11 2013-05-20 20:56:16

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [Solved] Accidentally Deleted /etc/rc.d

karol wrote:
alphaniner wrote:

Sadly, `rm -R /etc/rc.d/vmware*` has a very different meaning when there's a space before the asterisk. Haha.

Just be glad you weren't at / when you did that. I'm sure I read at least one account of that in the "worst computing mistakes" thread.

I recall someone doing

# rm -rf / some/thing

reminds me:
https://github.com/MrMEEE/bumblebee-Old … ce6#diff-1

the memes in the comments are pure awesomeness. big_smile

Offline

#12 2013-05-21 06:45:19

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [Solved] Accidentally Deleted /etc/rc.d

65kid wrote:
karol wrote:

I recall someone doing

# rm -rf / some/thing

reminds me:
https://github.com/MrMEEE/bumblebee-Old … ce6#diff-1

the memes in the comments are pure awesomeness. big_smile

Wow, made my day. And the comments are continuing even till a month back big_smile

Scimmia wrote:

You did it accidentally, I did it on purpose. When you're using systemd, those files are of no use and are now actively being removed from packages. In the very near future, that dir will be totally empty anyway.

Yeah, but when you upgrade the packages which still have those scripts, the files will be recreated tongue

Last edited by x33a (2013-05-21 06:50:32)

Offline

#13 2013-05-21 09:21:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,665

Re: [Solved] Accidentally Deleted /etc/rc.d

x33a wrote:
Scimmia wrote:

You did it accidentally, I did it on purpose. When you're using systemd, those files are of no use and are now actively being removed from packages. In the very near future, that dir will be totally empty anyway.

Yeah, but when you upgrade the packages which still have those scripts, the files will be recreated tongue

No they won't. I had /etc/rc.d/* in "NoExtract" in pacman.conf so they won't be, but now that they're being removed, no updated package should have those files anymore.

Offline

#14 2013-05-21 14:16:43

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Accidentally Deleted /etc/rc.d

Globbing support in NoExtract?  Thanks pacman 4.1 smile

Offline

Board footer

Powered by FluxBB