You are not logged in.
Pages: 1
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
You should regularly backup /etc (and /home ), so either way this shouldn't be an issue.
Offline
You should regularly backup /etc (and /home ), 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
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
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
karol wrote:You should regularly backup /etc (and /home ), 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
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
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
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
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
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.
Offline
karol wrote:I recall someone doing
# rm -rf / some/thing
reminds me:
https://github.com/MrMEEE/bumblebee-Old … ce6#diff-1the memes in the comments are pure awesomeness.
Wow, made my day. And the comments are continuing even till a month back
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
Last edited by x33a (2013-05-21 06:50:32)
Offline
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
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
Globbing support in NoExtract? Thanks pacman 4.1
Offline
Pages: 1