i2ks
Ну Иван, ну что же так жестоко, Вы поняли, я понял, а вот этому человеку будет тяжело: http://linuxforum.ru/viewtopic.php?id=17921, давайте так, если есть мануал, то по возможности переводить и будем добавлять в инструкции. :rolleyes:
p.s. only en ver
Это типа для английской версии? А смысл в этом тогда? Или я что то путаю.
Как вариант, просто я всегда использовал именно эту команду для переключения уровней запуска.
но это при работающей системе, а если перезагрузиться, то останется в runlevel 5, обычно правится /etc/inittab =)
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:
id:5:initdefault: > id:3:initdefault: но для systemd это не подойдет
И у нас соответствующий RL, :cool:
i2ks
Ну Иван, ну что же так жестоко, Вы поняли, я понял, а вот этому человеку будет тяжело: http://linuxforum.ru/viewtopic.php?id=17921, давайте так, если есть мануал, то по возможности переводить и будем добавлять в инструкции. :rolleyes:
я ту тему прочел пару дней назад )) тоже интересно стало что эта надпись значит ))) но службы ребутаю всегда той командой (/etc/init.d/xxx restart )
[console]# who --boot
# who -a
LOGIN tty2 2011-12-14 21:42 5664 id=tty2
ххх + pts/0 2011-12-15 10:08 . 5855 (хх.хх.хх.хх)
[/console]
классный вывод команды, как будто систему не запускали вообще )
в общем, команда init 3 прошла. теперь:
[console]# runlevel
N 3
[/console]
[console]# who -r
run-level 3 2011-12-15 21:42[/console]
забавно )
а вот лог с момента подключения по ssh:
text
Dec 15 21:41:34 router sshd[7345]: Accepted keyboard-interactive/pam for ххх from ххх.ххх.ххх.ххх port ххххх ssh2
Dec 15 21:41:34 router systemd-logind[3309]: New session 7 of user ххх.
Dec 15 21:41:45 router su: (to root) ххх on /dev/pts/0
Dec 15 21:41:50 router systemd[1]: dev-sda2.swap swap process exited, code=exited status=255
Dec 15 21:41:50 router systemd[1]: Unit dev-sda2.swap entered failed state.
Dec 15 21:41:50 router nscd[7402]: Starting Name Service Cache Daemon..done
Dec 15 21:41:50 router /usr/sbin/cron[7434]: (CRON) INFO (running with inotify support)
Dec 15 21:41:50 router smb[7399]: Starting Samba SMB daemon ..done
Dec 15 21:41:51 router smbd[7466]: [2011/12/15 21:41:51.330566, 0] printing/print_cups.c:110(cups_connect)
Dec 15 21:41:51 router smbd[7466]: Unable to connect to CUPS server localhost:631 - No such file or directory
Dec 15 21:41:51 router smbd[7443]: [2011/12/15 21:41:51.336784, 0] printing/print_cups.c:487(cups_async_callback)
Dec 15 21:41:51 router smbd[7443]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
Dec 15 21:41:52 router network-remotefs[7396]: Hint: you may set mandatory devices in /etc/sysconfig/network/config
Dec 15 21:41:52 router network-remotefs[7396]: Setting up (remotefs) network interfaces:
Dec 15 21:41:54 router network-remotefs[7396]: dsl0 name: DSL Connection
Dec 15 21:41:54 router ifup: dsl0 name: DSL Connection
Dec 15 21:41:56 router SuSEfirewall2: /var/lock/SuSEfirewall2.booting exists which means system boot in progress, exit.
Dec 15 21:41:56 router network-remotefs[7396]: ..doneSetting up service (remotefs) network . . . . . . . . . ...done
Dec 15 21:41:57 router SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Dec 15 21:41:59 router SuSEfirewall2: Firewall rules successfully set
Dec 15 21:42:00 router ntp[8034]: /etc/rc.status: line 54: /dev/stderr: No such device or address
Dec 15 21:42:00 router ntp[8034]: Time could not be synchronized
Dec 15 21:42:00 router ntpd[8070]: ntpd 4.2.6p3@1.2290-o Sat Oct 29 14:53:06 UTC 2011 (1)
Dec 15 21:42:00 router ntpd[8071]: proto: precision = 2.235 usec
Dec 15 21:42:00 router ntpd[8071]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
Dec 15 21:42:00 router ntp[8034]: Starting network time protocol daemon (NTPD)..done
Dec 15 21:42:00 router ntpd[8071]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Dec 15 21:42:00 router SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Dec 15 21:42:00 router ntpd[8071]: Listen and drop on 1 v6wildcard :: UDP 123
Dec 15 21:42:00 router ntpd[8071]: Listen normally on 2 lo 127.0.0.1 UDP 123
Dec 15 21:42:00 router ntpd[8071]: Listen normally on 3 eth0 192.168.1.1 UDP 123
Dec 15 21:42:00 router ntpd[8071]: Listen normally on 4 eth1 192.168.0.1 UDP 123
Dec 15 21:42:00 router ntpd[8071]: peers refreshed
Dec 15 21:42:03 router SuSEfirewall2: Firewall rules successfully set
Dec 15 21:42:03 router SuSEfirewall2_setup[8032]: Loading firewall rules ..done
Dec 15 21:42:51 router smbd[8318]: [2011/12/15 21:42:51.394423, 0] printing/print_cups.c:110(cups_connect)
Dec 15 21:42:51 router smbd[8318]: Unable to connect to CUPS server localhost:631 - No such file or directory
Dec 15 21:42:51 router smbd[7443]: [2011/12/15 21:42:51.404137, 0] printing/print_cups.c:487(cups_async_callback)
Dec 15 21:41:45 router su: (to root) ххх on /dev/pts/0
Лог посмотрел, честно, мало чего понял, всё отрабатывает нормально, кроме CAPS, но я так понимаю, печать на принтер у Вас не настроена, так что просто забиваем. Что сейчас с системой происходит то?
Я вот не понимаю, у ТС Systemd или SysVinit ? Если то и другое, то это бардак какой то. Надо прийти к общему знаменателю или SysVinit или Systemd, а иначе пляски со службами будут и дальше продолжаться.
в данный момент, если не перезагружаться, работает нормально, а после ребута все ручками поднимаем )))
i2ks написал:
Я вот не понимаю, у ТС Systemd или SysVinit ? Если то и другое, то это бардак какой то. Надо прийти к общему знаменателю или SysVinit или Systemd, а иначе пляски со службами будут и дальше продолжаться.
а как прийти к общему знаменателю? я же не ковырял систему то, как установлена, так установлена *при установке выбрал только минимальный текстовой сервер и потом пакеты вручную нужные ставил*
UNIT LOAD ACTIVE SUB JOB DESCRIPTION
proc-sys...misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
sys-devi...da-sda1.device loaded active plugged ST3200820A
sys-devi...da-sda2.device loaded active plugged ST3200820A
sys-devi...da-sda3.device loaded active plugged ST3200820A
sys-devi...da-sda4.device loaded active plugged ST3200820A
sys-devi...ock-sda.device loaded active plugged ST3200820A
sys-devi...et-eth0.device loaded active plugged VT6102 [Rhine-II]
sys-devi...et-eth1.device loaded active plugged DGE-528T Gigabit Ethernet Adapter
sys-devi...rename2.device loaded active plugged /sys/devices/pci0000:00/0000:00:14.0/net/rename2
sys-devi...y-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
sys-devi...y-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
sys-devi...-ttyS10.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS10
sys-devi...-ttyS11.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS11
sys-devi...-ttyS12.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS12
sys-devi...-ttyS13.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS13
sys-devi...-ttyS14.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS14
sys-devi...-ttyS15.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS15
sys-devi...-ttyS16.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS16
sys-devi...-ttyS17.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS17
sys-devi...-ttyS18.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS18
sys-devi...-ttyS19.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS19
sys-devi...y-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devi...-ttyS20.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS20
sys-devi...-ttyS21.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS21
sys-devi...-ttyS22.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS22
sys-devi...-ttyS23.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS23
sys-devi...-ttyS24.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS24
sys-devi...-ttyS25.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS25
sys-devi...-ttyS26.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS26
sys-devi...-ttyS27.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS27
sys-devi...-ttyS28.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS28
sys-devi...-ttyS29.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS29
sys-devi...y-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-devi...-ttyS30.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS30
sys-devi...-ttyS31.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS31
sys-devi...y-ttyS4.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS4
sys-devi...y-ttyS5.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS5
sys-devi...y-ttyS6.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS6
sys-devi...y-ttyS7.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS7
sys-devi...y-ttyS8.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS8
sys-devi...y-ttyS9.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS9
sys-devi...et-dsl0.device loaded active plugged /sys/devices/virtual/net/dsl0
sys-devi...et-ppp0.device loaded active plugged /sys/devices/virtual/net/ppp0
sys-devi...ty-tty0.device loaded active plugged /sys/devices/virtual/tty/tty0
sys-devi...ty-tty1.device loaded active plugged /sys/devices/virtual/tty/tty1
sys-devi...y-tty10.device loaded active plugged /sys/devices/virtual/tty/tty10
sys-devi...y-tty11.device loaded active plugged /sys/devices/virtual/tty/tty11
sys-devi...y-tty12.device loaded active plugged /sys/devices/virtual/tty/tty12
sys-devi...ty-tty2.device loaded active plugged /sys/devices/virtual/tty/tty2
sys-devi...ty-tty3.device loaded active plugged /sys/devices/virtual/tty/tty3
sys-devi...ty-tty4.device loaded active plugged /sys/devices/virtual/tty/tty4
sys-devi...ty-tty5.device loaded active plugged /sys/devices/virtual/tty/tty5
sys-devi...ty-tty6.device loaded active plugged /sys/devices/virtual/tty/tty6
sys-devi...ty-tty7.device loaded active plugged /sys/devices/virtual/tty/tty7
sys-devi...ty-tty8.device loaded active plugged /sys/devices/virtual/tty/tty8
sys-devi...ty-tty9.device loaded active plugged /sys/devices/virtual/tty/tty9
-.mount loaded active mounted /
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
media.mount loaded active mounted Media Directory
share.mount loaded active mounted /share
sys-kernel-debug.mount loaded active mounted Debug File System
sys-kernel-security.mount loaded active mounted Security File System
var-lib-dhcp-proc.mount loaded active mounted /var/lib/dhcp/proc
var-lib-named-proc.mount loaded active mounted /var/lib/named/proc
var-lock.mount loaded active mounted Lock Directory
var-run.mount loaded active mounted Runtime Directory
systemd-...d-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
systemd-...word-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
apache2.service loaded active running apache
bootsplash-quit.service loaded active exited Terminate bootsplash
bootspla...tartup.service loaded active exited Start bootsplash
console-...daemon.service loaded active running Console Manager
console-...-start.service loaded active exited Console System Startup Logging
cron.service loaded active running Command Scheduler
dbus.service loaded active running D-Bus System Message Bus
dhcpd.service loaded failed failed LSB: ISC DHCP 4.x Server
fbset.service loaded active exited LSB: Framebuffer setup
getty@tty1.service loaded active running Getty on tty1
getty@tty2.service loaded active running Getty on tty2
getty@tty3.service loaded active running Getty on tty3
localnet.service loaded active exited LSB: setup hostname and yp
named.service loaded active running LSB: Domain Name System (DNS) server, named
network.service loaded active running LSB: Configure the localfs depending network interfaces
nmb.service loaded active running LSB: Samba NetBIOS naming service over IP
nscd.service loaded active running LSB: Start Name Service Cache Daemon
purge-kernels.service loaded active exited LSB: Purge old kernels
rc-local.service loaded active exited /etc/init.d/boot.local Compatibility
remount-rootfs.service loaded active exited Remount Root FS
smb.service loaded active running LSB: Samba SMB/CIFS file and print server
smpppd.service loaded active running LSB: SUSE Meta PPP Daemon
sshd.service loaded active running LSB: Start the sshd daemon
storage-...tsetup.service loaded active exited Restart storage after crypsetup
SuSEfire...2_init.service loaded active exited LSB: SuSEfirewall2 phase 1
SuSEfire..._setup.service loaded active exited LSB: SuSEfirewall2 phase 2
syslog.service loaded active running System Logging Service
systemd-...yslogd.service loaded active running Syslog Kernel Log Buffer Bridge
systemd-logind.service loaded active running Login Service
systemd-...ollect.service loaded active exited Collect Read-Ahead Data
systemd-...replay.service loaded active exited Replay Read-Ahead Data
systemd-...pi-vfs.service loaded active exited Remount API VFS
systemd-...bridge.service loaded active running STDOUT Syslog Bridge
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-...-setup.service loaded active exited Recreate Volatile Files and Directories
systemd-...ssions.service loaded active exited Permit User Sessions
systemd-...-setup.service loaded active exited Setup Virtual Console
udev-trigger.service loaded active exited udev Coldplug all Devices
udev.service loaded active running udev Kernel Device Manager
dbus.socket loaded active running D-Bus System Message Bus Socket
syslog.socket loaded active running Syslog Socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
systemd-...-bridge.socket loaded active running Stdio Syslog Bridge Socket
udev-control.socket loaded active running udev Control Socket
udev-kernel.socket loaded active running udev Kernel Socket
dev-sda2.swap loaded failed failed /dev/sda2
basic.target loaded active active Basic System
cryptsetup.target loaded active active Encrypted Volumes
getty.target loaded active active Login Prompts
local-fs-pre.target loaded active active Local File Systems (Pre)
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User
network.target loaded active active Network
nss-lookup.target loaded active active Name Lookups
remote-fs.target loaded active active Remote File Systems
sockets.target loaded active active Sockets
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
syslog.target loaded active active Syslog
systemd-...ead-done.timer loaded active elapsed Stop Read-Ahead Data Collection 10s After Completed Startup
systemd-...es-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
JOB = Pending job for the unit.
131 units listed. Pass --all to see inactive units, too.
и кстати, init 3 не с первого раза обрабатывается, раза с 3го
пробовал команду ./ifup-sysctl lo -o hotplug выполнять, ничего не выдает, пусто, во всяком случае ошибок нет
NEO-AniLab, а можешь показать что у тебя в yast booting grub, строчка init=/bin/?
а вот тут по подробнее, зайти в яст. там систем > бут лоадер? а дальше что именно смотреть? *такого параметра init=/ вообще нет в конфигах загрузчика, зато есть:
text
Kernel Image
x /boot/vmlinuz-3.1.0-1.2-default
x Initial RAM Disk
x /boot/initrd-3.1.0-1.2-default
x Root Device
x /dev/disk/by-id/ata-ST3200820A_5QE14BWK-part3
x Optional Kernel Command Line Parameter
x resume=/dev/disk/by-id/ata-ST3200820A_5QE14BWK-part2 splash=silent quiet showopts
если я конечно правильно понял куда смотреть надо )
и меня очень сильно смущает последняя строчка, ибо part2 вроде как swap
At this point systemd is installed in parallel with systemvinit. To actually use systemd as your init reboot your machine and append the following to your kernel command line arguments at the grub menu:
init=/bin/systemd
Как то так:
text
$EDITOR /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet init=/bin/systemd" <--- Change this line
At this point systemd is installed in parallel with systemvinit. To actually use systemd as your init reboot your machine and append the following to your kernel command line arguments at the grub menu:
init=/bin/systemd
Как то так:
text
$EDITOR /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet init=/bin/systemd" <--- Change this line
# update-grub
такого файла в папке нет, или его создать надо? и команды update-grub тоже нет