crowl |
10-16-2012 03:30 AM |
debian emty init scripts /etc/init.d
I have tried to make some some scripts autostart at my new debian squeeze system.
Accidentally it seems that I have clear all active init scripts, apache2, bind9, cron, all those scripts are empty :scratch:
Code:
root@host:/etc/init.d# ls -la
total 212
drwxr-xr-x 2 root root 4096 Oct 16 10:02 .
drwxr-xr-x 80 root root 4096 Oct 16 00:06 ..
-rwxr-xr-x 1 root root 0 Oct 16 09:50 acpid
-rwxr-xr-x 1 root root 0 Oct 16 09:50 apache2
-rwxr-xr-x 1 root root 0 Oct 16 09:50 bind9
-rwxr-xr-x 1 root root 2444 Jan 1 2011 bootlogd
-rwxr-xr-x 1 root root 0 Oct 16 09:50 bootlogs
-rwxr-xr-x 1 root root 1381 Jan 1 2011 bootmisc.sh
-rwxr-xr-x 1 root root 3978 Jan 1 2011 checkfs.sh
-rwxr-xr-x 1 root root 10822 Jan 1 2011 checkroot.sh
-rwxr-xr-x 1 root root 1279 Jun 26 2010 console-setup
-rwxr-xr-x 1 root root 0 Oct 16 09:50 courier-authdaemon
-rwxr-xr-x 1 root root 0 Oct 16 09:50 courier-imap
-rwxr-xr-x 1 root root 0 Oct 16 09:50 courier-pop
-rwxr-xr-x 1 root root 0 Oct 16 09:50 cron
-rw-r--r-- 1 root root 1921 Oct 16 10:10 .depend.boot
-rw-r--r-- 1 root root 497 Oct 16 10:10 .depend.start
-rw-r--r-- 1 root root 873 Oct 16 10:10 .depend.stop
-rwxr-xr-x 1 root root 1329 Jan 1 2011 halt
-rwxr-xr-x 1 root root 1423 Jan 1 2011 hostname.sh
-rwxr-xr-x 1 root root 5079 Jan 25 2011 hwclockfirst.sh
-rwxr-xr-x 1 root root 5061 Jan 25 2011 hwclock.sh
-rwxr-xr-x 1 root root 2518 Sep 15 2006 ifupdown
-rwxr-xr-x 1 root root 1047 Sep 6 2009 ifupdown-clean
-rwxr-xr-x 1 root root 7743 Oct 13 2010 kbd
-rwxr-xr-x 1 root root 1486 Jun 26 2010 keyboard-setup
-rwxr-xr-x 1 root root 1293 Jan 1 2011 killprocs
-rwxr-xr-x 1 root root 1334 Jun 28 2010 module-init-tools
-rwxr-xr-x 1 root root 620 Jan 1 2011 mountall-bootclean.sh
-rwxr-xr-x 1 root root 1668 Jan 1 2011 mountall.sh
-rwxr-xr-x 1 root root 1560 Jan 1 2011 mountdevsubfs.sh
-rwxr-xr-x 1 root root 1924 Jan 1 2011 mountkernfs.sh
-rwxr-xr-x 1 root root 628 Jan 1 2011 mountnfs-bootclean.sh
-rwxr-xr-x 1 root root 2330 Jan 1 2011 mountnfs.sh
-rwxr-xr-x 1 root root 1315 Jan 1 2011 mountoverflowtmp
-rwxr-xr-x 1 root root 3649 Jan 1 2011 mtab.sh
-rwxr-xr-x 1 root root 0 Oct 16 09:50 mysql
-rwxr-xr-x 1 root root 2451 Apr 19 2010 networking
-rwxr-xr-x 1 root root 0 Oct 16 09:50 postfix
-r-xr-xr-x 1 root root 0 Oct 16 09:50 prltoolsd
-r-xr-xr-x 1 root root 0 Oct 16 09:50 prl-x11
-rwxr-xr-x 1 root root 1298 Feb 1 2010 procps
-rwxr-xr-x 1 root root 0 Oct 16 09:50 proftpd
-rwxr-xr-x 1 root root 8635 Mar 24 2012 rc
-rwxr-xr-x 1 root root 0 Oct 16 09:50 rc.local
-rwxr-xr-x 1 root root 117 Mar 24 2012 rcS
-rw-r--r-- 1 root root 2427 Mar 24 2012 README
-rwxr-xr-x 1 root root 639 Jan 1 2011 reboot
-rwxr-xr-x 1 root root 0 Oct 16 09:50 rmnologin
-rwxr-xr-x 1 root root 0 Oct 16 09:50 rsyslog
-rwxr-xr-x 1 root root 3286 Jan 1 2011 sendsigs
-rwxr-xr-x 1 root root 590 Jan 1 2011 single
-rw-r--r-- 1 root root 4304 Mar 24 2012 skeleton
-rwxr-xr-x 1 root root 0 Oct 16 09:50 ssh
-rwxr-xr-x 1 root root 0 Oct 16 09:50 stop-bootlogd
-rwxr-xr-x 1 root root 1143 Jan 1 2011 stop-bootlogd-single
-rwxr-xr-x 1 root root 7578 Dec 13 2010 udev
-rwxr-xr-x 1 root root 1153 Dec 13 2010 udev-mtab
-rwxr-xr-x 1 root root 2869 Jan 1 2011 umountfs
-rwxr-xr-x 1 root root 2143 Jan 1 2011 umountnfs.sh
-rwxr-xr-x 1 root root 1456 Jan 1 2011 umountroot
-rwxr-xr-x 1 root root 1985 Jan 1 2011 urandom
-rwxr-xr-x 1 root root 0 Oct 16 09:50 vsftpd
Probably it was issued due to a wrong using of insserv, I guess - not sure. However, what is the best way to recreate the init scripts? Copy them from another machine?
I already tried "aptitude reinstall apache2" but this does not create a new file at /etc/init.d/apache2.
|