Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: init services not startable?

  1. #11
    Join Date
    Mar 2010
    Location
    ρθΦ=000
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: init services not startable?

    You also should make sure everything else is up-to-date and working properly

    Code:
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get -f install
    sudo apt-get install upstart

  2. #12
    Join Date
    Feb 2008
    Beans
    50

    Re: init services not startable?

    Code:
    sudo /usr/sbin/cron
    This works! Thanks.

    But what do you figure is the best way to get it to automatically start on a system startup/reboot?

    I successfully ran your other suggested commands seawolf & webofunni, but they don't seem to have had any effect. Getting things like "sudo service cron start" to work would be ideal.

  3. #13
    Join Date
    Aug 2006
    Location
    India
    Beans
    301
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: init services not startable?

    Code:
    sudo strace -vvv start cron
    ?

  4. #14
    Join Date
    Feb 2008
    Beans
    50

    Re: init services not startable?

    Code:
    $ sudo strace -vvv start cron
    [sudo] password for macho: 
    execve("/sbin/start", ["start", "cron"], ["TERM=xterm", "PATH=/usr/local/sbin:/usr/local/"..., "LANG=en_CA.UTF-8", "PS1=\\[\\033[1;37m\\][\\[\\033[1;31m\\"..., "HOME=/home/macho", "LANGUAGE=en_CA:en", "DISPLAY=:0", "COLORTERM=gnome-terminal", "XAUTHORITY=/var/run/gdm/auth-for"..., "SHELL=/bin/bash", "LOGNAME=root", "USER=root", "USERNAME=root", "MAIL=/var/mail/root", "SUDO_COMMAND=/usr/bin/strace -vv"..., "SUDO_USER=macho", "SUDO_UID=1000", "SUDO_GID=1000"]) = 0
    brk(0)                                  = 0x146a000
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f626a9d5000
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY)      = 3
    fstat(3, {st_dev=makedev(8, 1), st_ino=2883727, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=264, st_size=132822, st_atime=2011/05/23-14:37:07, st_mtime=2011/05/23-14:37:07, st_ctime=2011/05/23-14:37:07}) = 0
    mmap(NULL, 132822, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f626a9b4000
    close(3)                                = 0
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\360\1\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_dev=makedev(8, 1), st_ino=262279, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=3200, st_size=1638120, st_atime=2011/05/03-13:22:17, st_mtime=2011/04/11-06:26:01, st_ctime=2011/04/30-12:59:40}) = 0
    mmap(NULL, 3749080, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f626a423000
    mprotect(0x7f626a5ad000, 2093056, PROT_NONE) = 0
    mmap(0x7f626a7ac000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x189000) = 0x7f626a7ac000
    mmap(0x7f626a7b1000, 21720, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f626a7b1000
    close(3)                                = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f626a9b3000
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f626a9b1000
    arch_prctl(ARCH_SET_FS, 0x7f626a9b1720) = 0
    mprotect(0x7f626a7ac000, 16384, PROT_READ) = 0
    mprotect(0x604000, 4096, PROT_READ)     = 0
    mprotect(0x7f626a9d7000, 4096, PROT_READ) = 0
    munmap(0x7f626a9b4000, 132822)          = 0
    brk(0)                                  = 0x146a000
    brk(0x148b000)                          = 0x148b000
    open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
    fstat(3, {st_dev=makedev(8, 1), st_ino=1573007, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=5328, st_size=2772576, st_atime=2011/05/03-19:24:56, st_mtime=2011/04/30-13:07:59, st_ctime=2011/04/30-13:07:59}) = 0
    mmap(NULL, 2772576, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f626a17e000
    close(3)                                = 0
    close(1)                                = 0
    close(2)                                = 0
    exit_group(0)                           = ?

  5. #15
    Join Date
    Aug 2006
    Location
    India
    Beans
    301
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: init services not startable?

    which version of ubuntu u r using ?

    Code:
    lsb_release -a

  6. #16
    Join Date
    Feb 2008
    Beans
    50

    Re: init services not startable?

    Code:
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 11.04
    Release:	11.04
    Codename:	natty

  7. #17
    Join Date
    Aug 2006
    Location
    India
    Beans
    301
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: init services not startable?

    mmap looks different. I need more details, also try those as actual room. Need to check, if there any environment variable problem with the user. watch sudo su -

    Code:
    ps auxxxfx
    sudo su -
    initctl list
    initctl status udev
    initctl --version
    initctl -v start cron
    initctl -v start udev

  8. #18
    Join Date
    Feb 2008
    Beans
    50

    Re: init services not startable?

    I'm running on amd64, could that be it?

    Code:
    $ ps auxxxfx
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root         2  0.0  0.0      0     0 ?        S    May25   0:00 [kthreadd]
    root         3  0.0  0.0      0     0 ?        S    May25   0:00  \_ [ksoftirqd]
    root         6  0.0  0.0      0     0 ?        S    May25   0:00  \_ [migration]
    root         7  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [cpuset]
    root         8  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [khelper]
    root         9  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [netns]
    root        10  0.0  0.0      0     0 ?        S    May25   0:00  \_ [sync_supe]
    root        11  0.0  0.0      0     0 ?        S    May25   0:00  \_ [bdi-defau]
    root        12  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kintegrit]
    root        13  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kblockd]
    root        14  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kacpid]
    root        15  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kacpi_not]
    root        16  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kacpi_hot]
    root        17  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [ata_sff]
    root        18  0.0  0.0      0     0 ?        S    May25   0:00  \_ [khubd]
    root        19  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [md]
    root        46  0.0  0.0      0     0 ?        S    May25   0:00  \_ [khungtask]
    root        47  0.0  0.0      0     0 ?        S    May25   0:00  \_ [kswapd0]
    root        48  0.0  0.0      0     0 ?        SN   May25   0:00  \_ [ksmd]
    root        49  0.0  0.0      0     0 ?        S    May25   0:00  \_ [fsnotify_]
    root        50  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [aio]
    root        51  0.0  0.0      0     0 ?        S    May25   0:00  \_ [ecryptfs-]
    root        52  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [crypto]
    root        56  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kthrotld]
    root        68  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kmpathd]
    root        69  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kmpath_ha]
    root        70  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kondemand]
    root        71  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kconserva]
    root       234  0.0  0.0      0     0 ?        S    May25   0:02  \_ [scsi_eh_0]
    root       237  0.0  0.0      0     0 ?        S    May25   0:00  \_ [scsi_eh_1]
    root       262  0.0  0.0      0     0 ?        S    May25   0:00  \_ [scsi_eh_2]
    root       263  0.0  0.0      0     0 ?        S    May25   0:00  \_ [scsi_eh_3]
    root       264  0.0  0.0      0     0 ?        S    May25   0:00  \_ [scsi_eh_4]
    root       265  0.0  0.0      0     0 ?        S    May25   0:00  \_ [scsi_eh_5]
    root       295  0.0  0.0      0     0 ?        S    May25   0:00  \_ [jbd2/sda1]
    root       296  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [ext4-dio-]
    root       626  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [edac-poll]
    root       742  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [kpsmoused]
    root       754  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [cfg80211]
    root       824  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [ext4-dio-]
    root       845  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [hd-audio0]
    root       861  0.0  0.0      0     0 ?        S    May25   0:01  \_ [jbd2/sdb1]
    root       862  0.0  0.0      0     0 ?        S<   May25   0:00  \_ [ext4-dio-]
    root      1010  0.0  0.0      0     0 ?        S    May25   0:00  \_ [firegl]
    root      1011  0.0  0.0      0     0 ?        S    May25   0:00  \_ [firegl]
    root      1012  0.0  0.0      0     0 ?        S    May25   0:00  \_ [firegl]
    root      1077  0.0  0.0      0     0 ?        S    May25   0:01  \_ [flush-8:1]
    root      1078  0.0  0.0      0     0 ?        S    May25   0:00  \_ [flush-8:0]
    root      3169  0.0  0.0      0     0 ?        S    07:46   0:00  \_ [kworker/0]
    root      3173  0.0  0.0      0     0 ?        S    07:53   0:00  \_ [kworker/u]
    root      3182  0.0  0.0      0     0 ?        S    08:11   0:00  \_ [kworker/u]
    root      3185  0.0  0.0      0     0 ?        S    08:12   0:00  \_ [kworker/0]
    root      3231  0.0  0.0      0     0 ?        S    08:17   0:00  \_ [kworker/0]
    root      3232  0.0  0.0      0     0 ?        S    08:17   0:00  \_ [kworker/u]
    root         1  0.0  0.0  23872  1372 ?        Ss   May25   0:00 /sbin/init
    root       315  0.0  0.0  19080     4 ?        S    May25   0:00 /sbin/ureadahea
    root       358  0.0  0.0  17052   504 ?        S    May25   0:00 upstart-udev-br
    root       371  0.0  0.0  21856   384 ?        S<s  May25   0:00 udevd --daemon
    root       616  0.0  0.0  22000   568 ?        S<   May25   0:00  \_ udevd --dae
    root       617  0.0  0.0  22000   192 ?        S<   May25   0:00  \_ udevd --dae
    syslog     884  0.0  0.0  54456   876 ?        Sl   May25   0:00 rsyslogd -c4
    102        888  0.0  0.0  24732  1692 ?        Ss   May25   0:02 dbus-daemon --s
    root       902  0.0  0.1  79192  2144 ?        Ssl  May25   0:00 gdm-binary
    root       988  0.0  0.1  93796  1824 ?        Sl   May25   0:00  \_ /usr/lib/gd
    root       994  0.5  5.9 290348 106140 tty7    Ss+  May25   8:05      \_ /usr/bi
    root      1027  0.0  0.0 122596  1700 ?        Sl   May25   0:00      \_ /usr/li
    macho     1036  0.0  0.2 173844  3900 ?        Ssl  May25   0:00          \_ gno
    macho     1071  0.0  0.0  12092    16 ?        Ss   May25   0:00              \_
    macho     1109  0.5  4.0 597040 73544 ?        Sl   May25   7:20              \_
    macho     1357  0.0  0.0   4220   412 ?        Ss   May25   0:00              | 
    macho     1358  0.0  0.3 182680  6316 ?        Sl   May25   0:02              | 
    macho     1149  0.0  0.6 458236 11572 ?        Sl   May25   0:15              \_
    macho     1162  0.0  0.1 156840  2992 ?        Sl   May25   0:00              \_
    macho     1163  0.0  0.3 325484  5940 ?        Sl   May25   0:04              \_
    macho     1167  0.0  0.2 277516  4092 ?        Sl   May25   0:00              \_
    macho     1168  0.0  0.1 185728  3412 ?        Sl   May25   0:00              \_
    macho     1170  0.0  0.1 162608  2904 ?        Sl   May25   0:00              \_
    macho     1175  0.0  0.2 201344  4072 ?        Sl   May25   0:00              \_
    macho     1542  0.0  0.1 176496  3160 ?        S    May25   0:00              \_
    macho     1627  0.0  0.2 233128  4280 ?        S    May25   0:02              \_
    macho     1749  0.0  0.4 253744  8344 ?        Sl   May25   0:00              \_
    avahi      908  0.0  0.0  32128  1080 ?        S    May25   0:00 avahi-daemon: r
    avahi      909  0.0  0.0  32008   148 ?        S    May25   0:00  \_ avahi-daemo
    root       910  0.0  0.0  75512   984 ?        Ss   May25   0:00 /usr/sbin/cupsd
    root       913  0.0  0.1  92780  2948 ?        Ssl  May25   0:02 NetworkManager
    root      1016  0.0  0.0   7084   596 ?        S    May25   0:00  \_ /sbin/dhcli
    root       917  0.0  0.0  64656  1704 ?        S    May25   0:00 /usr/sbin/modem
    root       918  0.0  0.1  59768  2080 ?        Sl   May25   0:00 /usr/sbin/conso
    root       920  0.0  0.1  64156  2116 ?        Sl   May25   0:00 /usr/lib/policy
    root       998  0.0  0.0  28812  1064 ?        S    May25   0:00 /sbin/wpa_suppl
    macho     1074  0.0  0.0  26400   220 ?        S    May25   0:00 /usr/bin/dbus-l
    macho     1075  0.0  0.1  26704  2568 ?        Ss   May25   0:07 //bin/dbus-daem
    macho     1083  0.0  0.1  57264  3240 ?        S    May25   0:03 /usr/lib/libgco
    macho     1090  0.0  0.1  88544  1928 ?        Sl   May25   0:00 /usr/bin/gnome-
    macho     1094  0.0  0.3 460028  6716 ?        Ssl  May25   0:04 /usr/lib/gnome-
    macho     1100  0.0  0.0  51972  1616 ?        S    May25   0:00 /usr/lib/gvfs/g
    macho     1105  0.0  0.0  81008  1100 ?        Ssl  May25   0:00 /usr/lib/gvfs//
    macho     1112  0.0  0.2 283492  5224 ?        S<sl May25   1:15 /usr/bin/pulsea
    macho     1192  0.0  0.0 115836  1584 ?        Sl   May25   0:00  \_ /usr/lib/pu
    rtkit     1114  0.0  0.0  37628   892 ?        SNl  May25   0:00 /usr/lib/rtkit/
    macho     1172  0.0  0.4 116324  8288 ?        Sl   May25   0:00 /usr/bin/python
    macho     1191  0.0  0.0   6860   428 ?        S    May25   0:00  \_ /bin/cat
    macho     1201  0.0  0.0      0     0 ?        Z    May25   0:00  \_ 
    macho     1194  0.0  1.8 496064 34084 ?        Ssl  May25   0:19 /home/macho/.dr
    macho     1199  0.0  0.1  56700  2092 ?        S    May25   0:00 /usr/lib/gvfs/g
    macho     1208  0.0  0.4 231872  8440 ?        Sl   May25   0:01 /usr/lib/notify
    root      1218  0.0  0.1  77624  2220 ?        Sl   May25   0:00 /usr/lib/upower
    macho     1222  0.0  0.3 263956  6208 ?        Sl   May25   0:01 /usr/lib/evolut
    macho     1307  0.0  0.1  67932  2504 ?        S    May25   0:00 /usr/lib/gvfs/g
    root      1309  0.0  0.1  62152  2888 ?        Sl   May25   0:03 /usr/lib/udisks
    root      1310  0.0  0.0  45168   508 ?        S    May25   0:04  \_ udisks-daem
    macho     1313  0.0  0.0  59568  1392 ?        S    May25   0:00 /usr/lib/gvfs/g
    macho     1316  0.0  0.0  73364  1388 ?        Sl   May25   0:00 /usr/lib/gvfs/g
    macho     1345  0.0  0.1  56928  1924 ?        Sl   May25   0:00 /usr/lib/d-conf
    macho     1361  0.0  0.8 392652 16108 ?        Sl   May25   0:27 /usr/lib/unity/
    macho     1364  0.0  0.1 111268  2532 ?        Sl   May25   0:00 /usr/lib/unity-
    macho     1365  0.0  0.1 133928  2796 ?        Sl   May25   0:01 /usr/lib/unity-
    macho     1396  0.0  0.2 219308  4828 ?        S    May25   0:00 /usr/lib/bamf/b
    macho     1405  0.0  0.2 266788  3940 ?        Sl   May25   0:00 /usr/lib/indica
    macho     1406  0.0  0.1 165716  2056 ?        Sl   May25   0:00 /usr/lib/indica
    macho     1408  0.0  0.4 249704  7896 ?        Sl   May25   0:01 /usr/lib/indica
    macho     1410  0.0  0.1 170700  2988 ?        Sl   May25   0:00 /usr/lib/indica
    macho     1412  0.0  0.1 176072  2596 ?        Sl   May25   0:00 /usr/lib/indica
    macho     1421  0.0  0.2 143056  3688 ?        Sl   May25   0:03 /usr/lib/indica
    macho     1448  0.0  0.1  93680  2452 ?        Sl   May25   0:01 /usr/lib/geoclu
    macho     1454  0.0  0.0 175964  1648 ?        Ss   May25   0:00 gnome-screensav
    macho     1456  0.0  0.0  52232  1512 ?        S    May25   0:00 /usr/lib/gvfs/g
    macho     1484  0.0  0.0  45732  1448 ?        S    May25   0:00 /usr/lib/gvfs/g
    macho     1544  4.9 27.0 1408388 485832 ?      Sl   May25  71:34 /usr/lib/firefo
    macho     1638  0.1  0.2 235724  4656 ?        Sl   May25   1:27  \_ /usr/lib/fi
    macho     1653  0.6  1.5 136128 28296 ?        Sl   May25   9:19      \_ /usr/li
    macho     1650  0.0  1.0 298572 19240 ?        Sl   May25   1:12 /usr/bin/python
    root      1773  0.0  0.0  21768  1076 ?        Ss   May25   0:00 /usr/sbin/cron
    macho     1816  0.0  3.2 716440 58112 ?        Sl   May25   0:26 /usr/lib/thunde
    macho     2459  0.0  0.0  12312  1276 ?        S    May25   0:00 bash /usr/bin/b
    macho     2465  0.5  4.2 931836 75512 ?        Sl   May25   3:31  \_ banshee /us
    macho     2487  0.0  1.1 213968 19908 ?        S    May25   0:00 /usr/bin/python
    macho     3255  1.8  0.8 261420 15720 ?        Sl   08:20   0:00 gnome-terminal
    macho     3261  0.0  0.0  14612   816 ?        S    08:20   0:00  \_ gnome-pty-h
    macho     3262  0.0  0.1  21016  2284 pts/0    Ss   08:20   0:00  \_ bash
    macho     3264  0.0  0.0  17952  1168 pts/0    R+   08:20   0:00      \_ ps auxx
    $ sudo su -
    # initctl list
    # initctl status udev
    # initctl --version
    true (GNU coreutils) 8.5
    Copyright (C) 2010 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    Written by Jim Meyering.
    # initctl -v start cron
    # initctl -v start udev

  9. #19
    Join Date
    Aug 2006
    Location
    India
    Beans
    301
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: init services not startable?

    First of all initctl is not a part of GNU coreutils. That is a part of upstart.

    Code:
    dpkg -S `which initctl`
    ls -l `which initctl`
    file `which initctl`

  10. #20
    Join Date
    Feb 2008
    Beans
    50

    Re: init services not startable?

    AHA! Earlier I was following these instructions to build a custom bootable Ubuntu USB stick and I guess I missed restoring the initctl diversion. I undid it now and I think things are working.

    Thanks so much for your patience in helping me figure this out.

    Code:
    $ dpkg -S `which initctl`
    local diversion from: /sbin/initctl
    local diversion to: /sbin/initctl.distrib
    upstart: /sbin/initctl
    $ ls -l `which initctl`
    lrwxrwxrwx 1 root root 9 2011-04-30 20:16 /sbin/initctl -> /bin/true
    $ file `which initctl`
    /sbin/initctl: symbolic link to `/bin/true'
    $ ls -l /sbin/initctl.distrib 
    -rwxr-xr-x 1 root root 147208 2011-04-20 17:56 /sbin/initctl.distrib
    $ file /sbin/initctl.distrib 
    /sbin/initctl.distrib: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •