Re: Startup script στο /etc/init.d δεν λειτουργει

Nikolaos Paraschou niparasc at gmail.com
Fri Oct 12 21:41:30 BST 2007


>
> Βασικά, στείλε το output της εντολής:
> update-rc.d tomboy_init defaults


 Adding system startup for /etc/init.d/tomboy_init ...
   /etc/rc0.d/K20tomboy_init -> ../init.d/tomboy_init
   /etc/rc1.d/K20tomboy_init -> ../init.d/tomboy_init
   /etc/rc6.d/K20tomboy_init -> ../init.d/tomboy_init
   /etc/rc2.d/S20tomboy_init -> ../init.d/tomboy_init
   /etc/rc3.d/S20tomboy_init -> ../init.d/tomboy_init
   /etc/rc4.d/S20tomboy_init -> ../init.d/tomboy_init
   /etc/rc5.d/S20tomboy_init -> ../init.d/tomboy_init

επίσης στείλε το output από:
> ls -l /etc/init.d /etc/rc2.d


/etc/init.d:
total 380
-rwxr-xr-x 1 root root 2701 2007-03-14 09:07 acpid
-rwxr-xr-x 1 root root  867 2006-03-28 19:26 acpi-support
-rwxr-xr-x 1 root root 9501 2007-02-19 04:18 alsa-utils
-rwxr-xr-x 1 root root 1084 2007-03-05 08:38 anacron
-rwxr-xr-x 1 root root 1386 2007-03-05 08:37 apmd
-rwxr-xr-x 1 root root 3024 2007-03-10 12:16 apport
-rwxr-xr-x 1 root root  969 2007-02-20 15:41 atd
-rwxr-xr-x 1 root root 4318 2007-03-27 21:40 avahi-daemon
-rwxr-xr-x 1 root root 1109 2005-10-27 15:15 binfmt-support
-rwxr-xr-x 1 root root 6557 2007-03-30 17:48 bluetooth
-rwxr-xr-x 1 root root 3597 2007-04-11 00:45 bootclean
-rwxr-xr-x 1 root root 2121 2007-04-11 00:45 bootlogd
-rwxr-xr-x 1 root root 1883 2007-04-11 00:45 bootmisc.sh
-rwxr-xr-x 1 root root 1383 2007-03-27 15:37 brltty
-rwxr-xr-x 1 root root 2887 2007-04-11 00:45 checkfs.sh
-rwxr-xr-x 1 root root 9875 2007-04-11 00:45 checkroot.sh
-rwxr-xr-x 1 root root 6355 2006-11-11 04:16 console-screen.sh
-rwxr-xr-x 1 root root 1612 2007-04-10 18:15 console-setup
-rwxr-xr-x 1 root root 1761 2006-12-20 16:46 cron
-rwxr-xr-x 1 root root 2476 2007-04-04 11:31 cupsys
-rwxr-xr-x 1 root root 2760 2007-03-08 15:56 dbus
-rwxr-xr-x 1 root root 1222 2006-11-27 17:39 dns-clean
-rwxr-xr-x 1 root root 3136 2007-04-10 23:41 gdm
-rwxr-xr-x 1 root root 3214 2007-04-04 13:47 glibc.sh
-rwxr-xr-x 1 root root 1228 2007-04-11 00:45 halt
-rwxr-xr-x 1 root root 5137 2005-04-21 13:10 hdparm
-rwxr-xr-x 1 root root  909 2007-04-11 00:45 hostname.sh
-rwxr-xr-x 1 root root 2458 2007-04-12 03:01 hotkey-setup
-rwxr-xr-x 1 root root 4516 2007-04-04 12:28 hplip
-rwxr-xr-x 1 root root 3634 2007-03-12 18:46 hwclock.sh
-rwxr-xr-x 1 root root 1120 2006-11-23 17:22 keyboard-setup
-rwxr-xr-x 1 root root  944 2007-04-11 00:45 killprocs
-rwxr-xr-x 1 root root 1752 2007-03-08 18:46 klogd
-rwxr-xr-x 1 root root 1809 2006-12-06 16:05 laptop-mode
-rwxr-xr-x 1 root root  349 2007-04-13 21:27 linux-restricted-modules-common
-rwxr-xr-x 1 root root  748 2006-01-23 20:47 loopback
-rwxr-xr-x 1 root root 1054 2007-01-14 14:43 makedev
-rwxr-xr-x 1 root root 1399 2007-04-03 17:03 module-init-tools
-rwxr-xr-x 1 root root  617 2007-04-11 00:45 mountall-bootclean.sh
-rwxr-xr-x 1 root root 2354 2007-04-11 00:45 mountall.sh
-rwxr-xr-x 1 root root 1491 2007-04-11 00:45 mountdevsubfs.sh
-rwxr-xr-x 1 root root 1087 2007-04-11 00:45 mountkernfs.sh
-rwxr-xr-x 1 root root  615 2007-04-11 00:45 mountnfs-bootclean.sh
-rwxr-xr-x 1 root root 2689 2007-04-11 00:45 mtab.sh
-rwxr-xr-x 1 root root 1725 2006-11-27 15:32 networking
-rwxr-xr-x 1 root root  860 2005-10-29 05:48 nvidia-kernel
-rw-r--r-- 1 root root  433 2007-10-12 23:33 output
-rw-r--r-- 1 root root    0 2007-10-12 23:34 output2
-rwxr-xr-x 1 root root 2351 2007-03-07 23:45 pcmciautils
-rwxr-xr-x 1 root root 1172 2007-04-26 18:33 postgresql-8.2
-rwxr-xr-x 1 root root 4108 2006-12-19 02:35 powernowd
-rwxr-xr-x 1 root root  177 2006-12-19 02:35 powernowd.early
-rwxr-xr-x 1 root root  375 2007-04-05 06:41 pppd-dns
-rwxr-xr-x 1 root root 1208 2007-03-07 23:41 procps.sh
-rwxr-xr-x 1 root root 2498 2007-02-07 02:50 pure-ftpd
-rwxr-xr-x 1 root root 8186 2007-04-11 00:45 rc
-rwxr-xr-x 1 root root  522 2007-04-11 00:45 rc.local
-rwxr-xr-x 1 root root  117 2007-04-11 00:45 rcS
-rwxr-xr-x 1 root root 1492 2007-04-13 22:51 readahead
-rwxr-xr-x 1 root root 1957 2007-04-13 22:51 readahead-desktop
-rw-r--r-- 1 root root 1335 2007-04-11 00:45 README
-rwxr-xr-x 1 root root  692 2007-04-11 00:45 reboot
-rwxr-xr-x 1 root root 1000 2007-04-11 00:45 rmnologin
-rwxr-xr-x 1 root root 4096 2006-12-20 17:38 rsync
-rwxr-xr-x 1 root root  452 2007-03-08 18:59 screen
-rwxr-xr-x 1 root root  800 2007-04-11 00:45 sendsigs
-rwxr-xr-x 1 root root  585 2007-04-11 00:45 single
-rwxr-xr-x 1 root root 4215 2007-04-11 00:45 skeleton
-rwxr-xr-x 1 root root  510 2007-04-11 00:45 stop-bootlogd
-rwxr-xr-x 1 root root  647 2007-04-11 00:45 stop-bootlogd-single
-rwxr-xr-x 1 root root  864 2007-04-13 22:51 stop-readahead
-rwxr-xr-x 1 root root 2563 2007-03-08 18:46 sysklogd
-rwxr-xr-x 1 root root  157 2007-10-12 22:35 tomboy_init
-rwxr-xr-x 1 root root 2592 2007-04-10 17:03 udev
-rwxr-xr-x 1 root root 3477 2007-04-11 00:45 umountfs
-rwxr-xr-x 1 root root 1833 2007-04-11 00:45 umountnfs.sh
-rwxr-xr-x 1 root root 1105 2007-04-11 00:45 umountroot
-rwxr-xr-x 1 root root 1815 2007-04-11 00:45 urandom
-rwxr-xr-x 1 root root 2105 2007-02-23 12:50 usplash
-rwxr-xr-x 1 root root  820 2007-03-29 08:08 vbesave
-rwxr-xr-x 1 root root 1939 2007-04-11 00:45 waitnfs.sh
-rwxr-xr-x 1 root root 1626 2007-04-01 13:54 wpa-ifupdown
-rwxr-xr-x 1 root root 1832 2007-02-20 13:03 x11-common
-rwxr-xr-x 1 root root  486 2007-04-02 18:45 xserver-xorg-input-wacom

/etc/rc2.d:
total 4
-rw-r--r-- 1 root root 556 2007-04-11 00:46 README
lrwxrwxrwx 1 root root  17 2007-08-02 00:11 S05vbesave -> ../init.d/vbesave
lrwxrwxrwx 1 root root  15 2007-08-02 00:11 S10acpid -> ../init.d/acpid
lrwxrwxrwx 1 root root  25 2007-08-02 00:11 S10powernowd.early ->
../init.d/powernowd.early
lrwxrwxrwx 1 root root  18 2007-08-02 00:11 S10sysklogd ->
../init.d/sysklogd
lrwxrwxrwx 1 root root  34 2007-08-02 00:11 S10xserver-xorg-input-wacom ->
../init.d/xserver-xorg-input-wacom
lrwxrwxrwx 1 root root  15 2007-08-02 00:11 S11klogd -> ../init.d/klogd
lrwxrwxrwx 1 root root  14 2007-08-02 00:11 S12dbus -> ../init.d/dbus
lrwxrwxrwx 1 root root  13 2007-08-02 00:11 S13gdm -> ../init.d/gdm
lrwxrwxrwx 1 root root  16 2007-08-02 00:11 S19cupsys -> ../init.d/cupsys
lrwxrwxrwx 1 root root  15 2007-08-02 00:11 S19hplip -> ../init.d/hplip
lrwxrwxrwx 1 root root  24 2007-08-06 18:39 S19postgresql-8.2 ->
../init.d/postgresql-8.2
lrwxrwxrwx 1 root root  14 2007-08-02 00:11 S20apmd -> ../init.d/apmd
lrwxrwxrwx 1 root root  16 2007-08-02 00:11 S20apport -> ../init.d/apport
lrwxrwxrwx 1 root root  22 2007-08-02 00:11 S20hotkey-setup ->
../init.d/hotkey-setup
lrwxrwxrwx 1 root root  17 2007-08-02 00:11 S20makedev -> ../init.d/makedev
lrwxrwxrwx 1 root root  23 2007-08-02 00:11 S20nvidia-kernel ->
../init.d/nvidia-kernel
lrwxrwxrwx 1 root root  19 2007-08-02 00:11 S20powernowd ->
../init.d/powernowd
lrwxrwxrwx 1 root root  19 2007-08-15 20:03 S20pure-ftpd ->
../init.d/pure-ftpd
lrwxrwxrwx 1 root root  15 2007-08-02 00:11 S20rsync -> ../init.d/rsync
lrwxrwxrwx 1 root root  21 2007-10-12 23:33 S20tomboy_init ->
../init.d/tomboy_init
lrwxrwxrwx 1 root root  19 2007-08-02 00:11 S25bluetooth ->
../init.d/bluetooth
lrwxrwxrwx 1 root root  17 2007-08-02 00:11 S89anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root  13 2007-08-02 00:11 S89atd -> ../init.d/atd
lrwxrwxrwx 1 root root  14 2007-08-02 00:11 S89cron -> ../init.d/cron
lrwxrwxrwx 1 root root  24 2007-08-02 00:11 S90binfmt-support ->
../init.d/binfmt-support
lrwxrwxrwx 1 root root  17 2007-08-02 00:11 S98usplash -> ../init.d/usplash
lrwxrwxrwx 1 root root  22 2007-08-02 00:11 S99acpi-support ->
../init.d/acpi-support
lrwxrwxrwx 1 root root  18 2007-08-02 00:11 S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root  19 2007-08-02 00:11 S99rmnologin ->
../init.d/rmnologin
lrwxrwxrwx 1 root root  24 2007-08-02 00:11 S99stop-readahead ->
../init.d/stop-readahead

Τέλος, ενημερωτικά τα init scripts όταν ξεκινούν δεν έχουν ορισμένα
> standard paths. Δοκίμασε να τρέξεις το tomboy με full path μέσα στο
> script.
>

Όταν τρέχω το script δίνοντας ./tomboy_init ή sh tomboy_init (μέσα από το
/etc/init.d) τρέχει το tomboy κανονικά. Συνεπώς γιατί να μην τρέξει και μετά
το startup;; (Με μοναδική εντολή στο script: tomboy --search)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-gr/attachments/20071012/c2fa85e5/attachment-0001.htm 


More information about the Ubuntu-gr mailing list