Results 1 to 10 of 14
Hello. I am having a very strange issue. I tried to cd to /etc/init.d and I get an error saying that there is no such file or directory. How is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-10-2012 #1Just Joined!
- Join Date
- Jun 2012
- Posts
- 37
No /etc/init.d?
Hello. I am having a very strange issue. I tried to cd to /etc/init.d and I get an error saying that there is no such file or directory. How is this possible? I checked in Thunar as well and I see no directory called init.d.
Here's the output of ls -ls /etc just to prove it to you:
Code:drwxr-xr-x 65 root root 4096 Sep 9 22:02 . drwxr-xr-x 19 root root 4096 Sep 7 16:57 .. -rw------- 1 root root 0 Aug 30 04:23 .pwd.lock drwxr-xr-x 5 root root 4096 May 27 04:29 ConsoleKit drwxr-xr-x 2 root root 4096 Aug 30 15:57 ImageMagick drwxr-xr-x 4 root root 4096 Sep 9 17:49 NetworkManager drwxr-xr-x 4 root root 4096 Aug 30 04:34 X11 drwxr-xr-x 2 root root 4096 Aug 16 11:01 adobe -rw-r--r-- 1 root root 541 Aug 9 01:25 anacrontab -rw-r--r-- 1 root root 0 Aug 27 19:56 arch-release drwxr-xr-x 3 root root 4096 Apr 18 11:56 avahi -rw-r--r-- 1 root root 28 Jul 20 02:05 bash.bash_logout -rw-r--r-- 1 root root 657 Jul 20 02:05 bash.bashrc drwxr-xr-x 2 root root 4096 Aug 30 20:52 binfmt.d drwxr-xr-x 3 root root 4096 Jun 29 07:46 ca-certificates -rw-r--r-- 1 root root 6473 Jun 29 07:46 ca-certificates.conf -rw-r--r-- 1 root root 869 Jun 12 13:43 colord.conf drwxr-xr-x 2 root root 4096 Sep 9 17:49 conf.d drwxr-xr-x 2 root root 4096 May 3 23:46 conky drwxr-xr-x 2 root root 4096 Aug 9 01:25 cron.d drwxr-xr-x 2 root root 4096 Aug 30 04:23 cron.daily -rw-r--r-- 1 root root 74 Aug 9 01:25 cron.deny drwxr-xr-x 2 root root 4096 Aug 9 01:25 cron.hourly drwxr-xr-x 2 root root 4096 Aug 9 01:25 cron.monthly drwxr-xr-x 2 root root 4096 Aug 9 01:25 cron.weekly -rw------- 1 root root 762 Jul 20 23:46 crypttab drwxr-xr-x 2 root root 4096 Sep 5 19:33 cups drwxr-xr-x 4 root root 4096 Jul 21 11:08 dbus-1 drwxr-xr-x 2 root root 4096 Aug 30 04:25 default drwxr-xr-x 2 root root 4096 Jul 3 22:38 depmod.d -rw-r--r-- 1 root root 840 Jul 31 20:38 dhcpcd.conf -rw-r--r-- 1 root root 97 Jun 4 15:26 environment drwxr-xr-x 4 root root 4096 Sep 6 23:04 fonts -rw-r--r-- 1 root root 408 Aug 30 16:35 fstab -rw-r--r-- 1 root root 216 Aug 4 19:04 fuse.conf -rw-r--r-- 1 root root 3045 Aug 29 10:56 gai.conf drwxr-xr-x 6 root root 4096 Mar 10 2012 gconf -rw-r--r-- 1 root root 564 Sep 6 16:12 group -rw------- 1 root root 559 Sep 6 16:12 group- drwxr-xr-x 2 root root 4096 Jun 28 17:30 grub.d -rw------- 1 root root 472 Sep 6 16:12 gshadow -rw------- 1 root root 467 Sep 6 16:12 gshadow- -rw-r--r-- 1 root root 918 Aug 23 08:44 gssapi_mech.conf drwxr-xr-x 2 root root 4096 Aug 30 04:38 gtk-2.0 drwxr-xr-x 2 root root 4096 Jul 19 08:14 gtk-3.0 -rw-r--r-- 1 root root 63 Jul 20 23:46 host.conf -rw-r--r-- 1 root root 7 Aug 30 04:24 hostname -rw-r--r-- 1 root root 184 Sep 6 23:00 hosts -rw-r--r-- 1 root root 1239 Aug 30 04:44 inittab -rw-r--r-- 1 root root 714 Jul 20 01:23 inputrc drwxr-xr-x 2 root root 4096 Aug 14 19:00 iproute2 -rw-r--r-- 1 root root 1952 Feb 18 2012 irman.conf -rw-r--r-- 1 root root 6612 May 24 21:15 irssi.conf -rw-r--r-- 1 root root 20 Jul 20 23:46 issue -rw-r--r-- 1 root root 546 Aug 8 22:27 krb5.conf -rw-r--r-- 1 root root 82245 Sep 9 17:49 ld.so.cache -rw-r--r-- 1 root root 71 Jul 20 23:46 ld.so.conf drwxr-xr-x 2 root root 4096 Aug 30 04:23 ld.so.conf.d drwxr-xr-x 2 root root 4096 Jun 25 18:37 libnl drwxr-xr-x 2 root root 4096 Aug 26 09:04 lirc -rw-r--r-- 1 root root 9122 Aug 29 10:56 locale.gen lrwxrwxrwx 1 root root 30 Aug 30 04:36 localtime -> /usr/share/zoneinfo/US/Chicago -rw-r--r-- 1 root root 5374 Jun 30 15:53 login.defs -rw-r--r-- 1 root root 588 Aug 3 08:04 logrotate.conf drwxr-xr-x 2 root root 4096 Aug 31 17:19 logrotate.d -rw-r--r-- 1 root root 78 Feb 21 2012 lsb-release drwxr-xr-x 5 root root 4096 Aug 30 04:27 lvm -r--r--r-- 1 root root 33 Aug 30 04:23 machine-id -rw-r--r-- 1 root root 1925 Nov 4 2011 mail.rc -rw-r--r-- 1 root root 5035 Jul 10 21:49 makepkg.conf -rw-r--r-- 1 root root 5137 Jun 19 18:23 man_db.conf -rw-r--r-- 1 root root 2366 May 25 23:51 mdadm.conf -rw-r--r-- 1 root root 45163 Aug 3 2011 mime.types -rw-r--r-- 1 root root 956 Jul 31 20:43 mke2fs.conf -rw-r--r-- 1 root root 2810 Jul 29 16:08 mkinitcpio.conf drwxr-xr-x 2 root root 4096 Aug 30 04:23 mkinitcpio.d drwxr-xr-x 2 root root 4096 Jul 3 22:38 modprobe.d drwxr-xr-x 2 root root 4096 Sep 5 12:00 modules-load.d -rw-r--r-- 1 root root 0 Jul 20 23:46 motd drwxr-xr-x 2 root root 4096 Jul 7 16:17 mplayer lrwxrwxrwx 1 root root 17 Aug 27 19:56 mtab -> /proc/self/mounts -rw-r--r-- 1 root root 8728 Nov 2 2011 nanorc -rw-r--r-- 1 root root 767 Jul 29 2011 netconfig -rw-r--r-- 1 root root 2387 Aug 29 10:56 nscd.conf -rw-r--r-- 1 root root 223 Jul 20 23:46 nsswitch.conf drwxr-xr-x 2 root root 4096 Aug 1 02:25 openldap -rw-r--r-- 1 root root 194 Aug 27 19:56 os-release -rw-r--r-- 1 root root 3068 Aug 30 04:30 pacman.conf drwxr-xr-x 3 root root 4096 Sep 9 17:49 pacman.d drwxr-xr-x 2 root root 4096 Sep 5 19:44 pam.d drwxr-xr-x 2 root root 4096 Aug 30 04:35 pango -rw-r--r-- 1 root root 413 Aug 30 05:04 passwd -rw------- 1 root root 371 Aug 30 04:38 passwd- drwxr-xr-x 2 root root 4096 Apr 4 11:30 pcmcia drwxr-xr-x 2 root root 4096 Aug 12 20:40 pkcs11 drwxr-xr-x 3 root root 4096 Sep 7 08:08 pm drwxr-xr-x 5 root root 4096 May 13 21:03 polkit-1 drwxr-xr-x 5 root root 4096 Sep 9 17:49 ppp -rw-r--r-- 1 root root 562 Jul 20 23:46 profile drwxr-xr-x 2 root root 4096 Aug 31 17:19 profile.d -rw-r--r-- 1 root root 3253 Jul 22 17:24 protocols drwxr-xr-x 2 root root 4096 Jul 19 19:18 pulse -rw-r--r-- 1 root root 364 Aug 30 05:24 rc.conf drwxr-xr-x 3 root root 4096 Sep 9 17:49 rc.d -rwxr-xr-x 1 root root 69 Aug 20 14:36 rc.local -rwxr-xr-x 1 root root 66 Aug 20 14:36 rc.local.shutdown -rwxr-xr-x 1 root root 684 Aug 27 20:02 rc.multi -rwxr-xr-x 1 root root 3140 Aug 27 20:02 rc.shutdown -rwxr-xr-x 1 root root 600 Aug 27 20:02 rc.single -rwxr-xr-x 1 root root 4707 Aug 27 20:02 rc.sysinit drwxr-xr-x 2 root root 4096 May 2 11:31 rc_keymaps -rw-r--r-- 1 root root 5649 Apr 14 17:33 rc_maps.cfg -rw-r--r-- 1 root root 1856 Jun 23 16:27 request-key.conf drwxr-xr-x 2 root root 4096 Jun 23 16:27 request-key.d -rw-r--r-- 1 root root 132 Sep 9 21:40 resolv.conf -rw-r--r-- 1 root root 1615 Aug 29 10:56 rpc drwxr-xr-x 3 root root 4096 Aug 28 10:02 sane.d -rw-r--r-- 1 root root 3312 Jan 29 2012 screenrc -rw-r--r-- 1 root root 86 Jul 20 23:46 securetty drwxr-xr-x 3 root root 4096 Aug 30 04:41 security -rw-r--r-- 1 root root 286369 Jul 22 17:24 services -rw------- 1 root root 420 Aug 30 05:04 shadow -rw------- 1 root root 402 Aug 30 04:38 shadow- -rw-r--r-- 1 root root 52 Jul 20 23:46 shells drwxr-xr-x 2 root root 4096 Sep 5 19:44 skel -rw-r--r-- 1 root root 2955 Aug 30 04:44 slim.conf drwxr-xr-x 5 root root 4096 May 10 16:23 ssl -r--r----- 1 root root 2948 Sep 5 03:40 sudoers drwxr-x--- 2 root root 4096 Sep 4 05:52 sudoers.d -rw-r--r-- 1 root root 1320 Jul 11 17:42 sysctl.conf drwxr-xr-x 2 root root 4096 Aug 30 20:52 sysctl.d drwxr-xr-x 3 root root 4096 Jul 4 12:50 syslog-ng drwxr-xr-x 5 root root 4096 Sep 5 02:47 systemd drwxr-xr-x 2 root root 4096 Aug 30 20:52 tmpfiles.d drwxr-xr-x 3 root root 4096 Sep 5 02:47 udev drwxr-xr-x 2 root root 4096 Sep 9 17:49 vbox -rw-r--r-- 1 root root 51 Sep 5 07:49 vdpau_wrapper.cfg drwxr-xr-x 2 root root 4096 Jun 25 09:58 wpa_supplicant drwxr-xr-x 7 root root 4096 Sep 5 02:47 xdg drwxr-xr-x 2 root root 4096 Sep 5 02:47 xinetd.d drwxr-xr-x 2 root root 4096 Aug 30 04:38 xml
- 09-10-2012 #2
Try going into /etc/rc.d and you should find what you're looking for.
- 09-10-2012 #3Just Joined!
- Join Date
- Jun 2012
- Posts
- 37
This is what is in my /etc/rc.d
How is it possible that there is not init.d directory? More specifically I'm looking for rc6.d and rc0.dCode:alsa ftpd hwclock lircd networkmanager syslog-ng avahi-daemon functions irexecd lircmd nscd vboxweb avahi-dnsconfd functions.d krb5-kadmind mdadm ppp crond git-daemon krb5-kdc netfs slim dbus gpm krb5-kpropd network snmpd
- 09-10-2012 #4
Because init.d is not a requirement, it is simply a location where scripts are stored. As long as the system knows where to get the boot scripts from then it won't have a problem -- this is defined in /etc/inittab. For example, here is the script in Slackware that init first executes when control is passed over to it from the kernel:
And then when init boots into a specific runlevel (2, 3, 4, or 5), here is the script for that:Code:# System initialization (runs when system boots). si:S:sysinit:/etc/rc.d/rc.S
It's simply a different system than you're used to, but it works just the same.Code:# Script to run when going multi user. rc:2345:wait:/etc/rc.d/rc.M
Try running 'find . -name rc6.d' as root from within /etc and you should find it.
- 09-10-2012 #5Just Joined!
- Join Date
- Jun 2012
- Posts
- 37
'find . -name rc6.d'
If I wanted to run a script at start-up without an init.d would I put it in functions.d?Code:bash: find . -name rc6.d: command not found
- 09-10-2012 #6
Check out the Arch wiki here
- 09-26-2012 #7Just Joined!
- Join Date
- Sep 2012
- Location
- Santiago Chile
- Posts
- 9
- 09-26-2012 #8forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,733
I run Arch and don't have an /etc/init.d or /etc/rc.d folder, and I don't have an /etc/rc.conf file, either. The recent implementation of systemd allowed for doing away with a number of related folders/files.No /etc/init.d?oz
- 09-28-2012 #9Just Joined!
- Join Date
- Jun 2012
- Posts
- 37
So how would I autostart programs then?
- 09-28-2012 #10
Have you checked Arch Wiki?
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First




