Hi,
ich habe auf meinen Ubuntuserver Squid3 installiert. Diesen benutze ich zum cachen und filtern meiner Internetverbindung.
Wenn ich die Whitelist, die ich angelegt habe, ändere muss ich Squid neu starten lassen, damit die Änderungen wirksam werden.
Allerdings kann ich den Dienst nicht als Service neu starten weil dieser nicht existiert.
<Benutzer>@<Name>:/etc/init.d$ sudo service s samba samba-ad-dc screen-cleanup sendsigs single skeleton smartmontools smbd ssh sudo
Auch im Verzeichnis kann ich nichts finden und bekomme die gleiche Liste.
<Benutzer>@<Name>:/etc/init.d$ ls -l s* -rwxr-xr-x 1 root root 1304 Apr 1 2014 samba -rwxr-xr-x 1 root root 2299 Apr 1 2014 samba-ad-dc -rwxr-xr-x 1 root root 1226 Jul 22 2013 screen-cleanup -rwxr-xr-x 1 root root 3920 Mär 13 2014 sendsigs -rwxr-xr-x 1 root root 590 Mär 13 2014 single -rw-r--r-- 1 root root 4290 Mär 13 2014 skeleton -rwxr-xr-x 1 root root 3505 Sep 5 2013 smartmontools -rwxr-xr-x 1 root root 1930 Apr 1 2014 smbd -rwxr-xr-x 1 root root 4077 Mai 2 2014 ssh -rwxr-xr-x 1 root root 731 Feb 5 2014 sudo
Da ja Squid beim Booten ja auch startet und funktioniert, habe ich auch hier gesucht:
<Benutzer>@<Name>:/etc$ ls -al rc* -rwxr-xr-x 1 root root 336 Mär 25 17:32 rc.local rc0.d: insgesamt 12 drwxr-xr-x 2 root root 4096 Mär 26 19:17 . drwxr-xr-x 105 root root 4096 Mai 21 18:13 .. lrwxrwxrwx 1 root root 17 Mär 22 21:52 K09apache2 -> ../init.d/apache2 lrwxrwxrwx 1 root root 29 Mär 22 21:53 K10unattended-upgrades -> ../init.d/unattended-upgrades lrwxrwxrwx 1 root root 23 Mär 23 16:44 K18apt-cacher-ng -> ../init.d/apt-cacher-ng lrwxrwxrwx 1 root root 26 Mär 24 13:37 K20clamav-freshclam -> ../init.d/clamav-freshclam lrwxrwxrwx 1 root root 15 Mär 22 21:52 K20rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 24 Mär 22 21:52 K20screen-cleanup -> ../init.d/screen-cleanup -rw-r--r-- 1 root root 353 Mär 13 2014 README lrwxrwxrwx 1 root root 18 Mär 22 21:38 S20sendsigs -> ../init.d/sendsigs lrwxrwxrwx 1 root root 17 Mär 22 21:38 S30urandom -> ../init.d/urandom lrwxrwxrwx 1 root root 22 Mär 22 21:38 S31umountnfs.sh -> ../init.d/umountnfs.sh lrwxrwxrwx 1 root root 18 Mär 22 21:38 S40umountfs -> ../init.d/umountfs lrwxrwxrwx 1 root root 20 Mär 22 21:38 S60umountroot -> ../init.d/umountroot lrwxrwxrwx 1 root root 14 Mär 22 21:38 S90halt -> ../init.d/halt rc1.d: insgesamt 12 drwxr-xr-x 2 root root 4096 Mär 26 19:17 . drwxr-xr-x 105 root root 4096 Mai 21 18:13 .. lrwxrwxrwx 1 root root 17 Mär 22 21:52 K09apache2 -> ../init.d/apache2 lrwxrwxrwx 1 root root 23 Mär 23 16:44 K18apt-cacher-ng -> ../init.d/apt-cacher-ng lrwxrwxrwx 1 root root 26 Mär 24 13:37 K20clamav-freshclam -> ../init.d/clamav-freshclam lrwxrwxrwx 1 root root 15 Mär 22 21:52 K20rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 24 Mär 22 21:52 K20screen-cleanup -> ../init.d/screen-cleanup lrwxrwxrwx 1 root root 23 Mär 24 12:57 K20smartmontools -> ../init.d/smartmontools -rw-r--r-- 1 root root 369 Mär 13 2014 README lrwxrwxrwx 1 root root 19 Mär 22 21:38 S30killprocs -> ../init.d/killprocs lrwxrwxrwx 1 root root 19 Mär 22 21:53 S70dns-clean -> ../init.d/dns-clean lrwxrwxrwx 1 root root 18 Mär 22 21:52 S70pppd-dns -> ../init.d/pppd-dns lrwxrwxrwx 1 root root 16 Mär 22 21:38 S90single -> ../init.d/single rc2.d: insgesamt 12 drwxr-xr-x 2 root root 4096 Mär 26 19:17 . drwxr-xr-x 105 root root 4096 Mai 21 18:13 .. -rw-r--r-- 1 root root 677 Mär 13 20:49 README lrwxrwxrwx 1 root root 23 Mär 23 16:44 S18apt-cacher-ng -> ../init.d/apt-cacher-ng lrwxrwxrwx 1 root root 26 Mär 24 13:37 S20clamav-freshclam -> ../init.d/clamav-freshclam lrwxrwxrwx 1 root root 15 Mär 22 21:52 S20rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 24 Mär 22 21:52 S20screen-cleanup -> ../init.d/screen-cleanup lrwxrwxrwx 1 root root 23 Mär 24 12:57 S20smartmontools -> ../init.d/smartmontools lrwxrwxrwx 1 root root 19 Mär 22 21:53 S70dns-clean -> ../init.d/dns-clean lrwxrwxrwx 1 root root 18 Mär 22 21:52 S70pppd-dns -> ../init.d/pppd-dns lrwxrwxrwx 1 root root 17 Mär 22 21:52 S91apache2 -> ../init.d/apache2 lrwxrwxrwx 1 root root 21 Mär 22 21:54 S99grub-common -> ../init.d/grub-common lrwxrwxrwx 1 root root 18 Mär 22 21:38 S99ondemand -> ../init.d/ondemand lrwxrwxrwx 1 root root 18 Mär 22 21:38 S99rc.local -> ../init.d/rc.local rc3.d: insgesamt 12 drwxr-xr-x 2 root root 4096 Mär 26 19:17 . drwxr-xr-x 105 root root 4096 Mai 21 18:13 .. -rw-r--r-- 1 root root 677 Mär 13 20:49 README lrwxrwxrwx 1 root root 23 Mär 23 16:44 S18apt-cacher-ng -> ../init.d/apt-cacher-ng lrwxrwxrwx 1 root root 26 Mär 24 13:37 S20clamav-freshclam -> ../init.d/clamav-freshclam lrwxrwxrwx 1 root root 15 Mär 22 21:52 S20rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 24 Mär 22 21:52 S20screen-cleanup -> ../init.d/screen-cleanup lrwxrwxrwx 1 root root 23 Mär 24 12:57 S20smartmontools -> ../init.d/smartmontools lrwxrwxrwx 1 root root 19 Mär 22 21:53 S70dns-clean -> ../init.d/dns-clean lrwxrwxrwx 1 root root 18 Mär 22 21:52 S70pppd-dns -> ../init.d/pppd-dns lrwxrwxrwx 1 root root 17 Mär 22 21:52 S91apache2 -> ../init.d/apache2 lrwxrwxrwx 1 root root 21 Mär 22 21:54 S99grub-common -> ../init.d/grub-common lrwxrwxrwx 1 root root 18 Mär 22 21:38 S99ondemand -> ../init.d/ondemand lrwxrwxrwx 1 root root 18 Mär 22 21:38 S99rc.local -> ../init.d/rc.local rc4.d: insgesamt 12 drwxr-xr-x 2 root root 4096 Mär 26 19:17 . drwxr-xr-x 105 root root 4096 Mai 21 18:13 .. -rw-r--r-- 1 root root 677 Mär 13 20:49 README lrwxrwxrwx 1 root root 23 Mär 23 16:44 S18apt-cacher-ng -> ../init.d/apt-cacher-ng lrwxrwxrwx 1 root root 26 Mär 24 13:37 S20clamav-freshclam -> ../init.d/clamav-freshclam lrwxrwxrwx 1 root root 15 Mär 22 21:52 S20rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 24 Mär 22 21:52 S20screen-cleanup -> ../init.d/screen-cleanup lrwxrwxrwx 1 root root 23 Mär 24 12:57 S20smartmontools -> ../init.d/smartmontools lrwxrwxrwx 1 root root 19 Mär 22 21:53 S70dns-clean -> ../init.d/dns-clean lrwxrwxrwx 1 root root 18 Mär 22 21:52 S70pppd-dns -> ../init.d/pppd-dns lrwxrwxrwx 1 root root 17 Mär 22 21:52 S91apache2 -> ../init.d/apache2 lrwxrwxrwx 1 root root 21 Mär 22 21:54 S99grub-common -> ../init.d/grub-common lrwxrwxrwx 1 root root 18 Mär 22 21:38 S99ondemand -> ../init.d/ondemand lrwxrwxrwx 1 root root 18 Mär 22 21:38 S99rc.local -> ../init.d/rc.local rc5.d: insgesamt 12 drwxr-xr-x 2 root root 4096 Mär 26 19:17 . drwxr-xr-x 105 root root 4096 Mai 21 18:13 .. -rw-r--r-- 1 root root 677 Mär 13 20:49 README lrwxrwxrwx 1 root root 23 Mär 23 16:44 S18apt-cacher-ng -> ../init.d/apt-cacher-ng lrwxrwxrwx 1 root root 26 Mär 24 13:37 S20clamav-freshclam -> ../init.d/clamav-freshclam lrwxrwxrwx 1 root root 15 Mär 22 21:52 S20rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 24 Mär 22 21:52 S20screen-cleanup -> ../init.d/screen-cleanup lrwxrwxrwx 1 root root 23 Mär 24 12:57 S20smartmontools -> ../init.d/smartmontools lrwxrwxrwx 1 root root 19 Mär 22 21:53 S70dns-clean -> ../init.d/dns-clean lrwxrwxrwx 1 root root 18 Mär 22 21:52 S70pppd-dns -> ../init.d/pppd-dns lrwxrwxrwx 1 root root 17 Mär 22 21:52 S91apache2 -> ../init.d/apache2 lrwxrwxrwx 1 root root 21 Mär 22 21:54 S99grub-common -> ../init.d/grub-common lrwxrwxrwx 1 root root 18 Mär 22 21:38 S99ondemand -> ../init.d/ondemand lrwxrwxrwx 1 root root 18 Mär 22 21:38 S99rc.local -> ../init.d/rc.local rc6.d: insgesamt 12 drwxr-xr-x 2 root root 4096 Mär 26 19:17 . drwxr-xr-x 105 root root 4096 Mai 21 18:13 .. lrwxrwxrwx 1 root root 17 Mär 22 21:52 K09apache2 -> ../init.d/apache2 lrwxrwxrwx 1 root root 29 Mär 22 21:53 K10unattended-upgrades -> ../init.d/unattended-upgrades lrwxrwxrwx 1 root root 23 Mär 23 16:44 K18apt-cacher-ng -> ../init.d/apt-cacher-ng lrwxrwxrwx 1 root root 26 Mär 24 13:37 K20clamav-freshclam -> ../init.d/clamav-freshclam lrwxrwxrwx 1 root root 15 Mär 22 21:52 K20rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 24 Mär 22 21:52 K20screen-cleanup -> ../init.d/screen-cleanup -rw-r--r-- 1 root root 351 Mär 13 2014 README lrwxrwxrwx 1 root root 18 Mär 22 21:38 S20sendsigs -> ../init.d/sendsigs lrwxrwxrwx 1 root root 17 Mär 22 21:38 S30urandom -> ../init.d/urandom lrwxrwxrwx 1 root root 22 Mär 22 21:38 S31umountnfs.sh -> ../init.d/umountnfs.sh lrwxrwxrwx 1 root root 18 Mär 22 21:38 S40umountfs -> ../init.d/umountfs lrwxrwxrwx 1 root root 20 Mär 22 21:38 S60umountroot -> ../init.d/umountroot lrwxrwxrwx 1 root root 16 Mär 22 21:38 S90reboot -> ../init.d/reboot rcS.d: insgesamt 12 drwxr-xr-x 2 root root 4096 Mär 26 19:17 . drwxr-xr-x 105 root root 4096 Mai 21 18:13 .. -rw-r--r-- 1 root root 447 Mär 13 2014 README lrwxrwxrwx 1 root root 18 Mär 22 21:51 S37apparmor -> ../init.d/apparmor lrwxrwxrwx 1 root root 17 Mär 22 21:38 S55urandom -> ../init.d/urandom
Aber im allgemeinen verweist das alles auf /etc/init.d.
Jetzt weis ich nicht wie Squid überhaupt startet. Und ich weis auch nicht wie ich den Dienst mit service neustarten kann.
Danke für alle Informationen hierzu.
EDIT: Bis jetzt lasse ich den Server rebooten, damit die Änderung übernommen wird.