#1 11.12.11 10:12
не работает star-stop-daemon, почему?
Linux 3.0.6-gentoo #4 SMP Fri Dec 9 23:40:27 MSK 2011 x86_64 Intel(R) Xeon(TM) CPU 3.20GHz GenuineIntel GNU/Linux
net-misc/openntpd
Latest version available: 3.9_p1-r3
Latest version installed: 3.9_p1-r3
Код::
etc/init.d/ntpd start --debug
+ loadconfig /etc/init.d/../conf.d
+ _c=ntpd
+ '[' -n ntpd -a ntpd '!=' ntpd ']'
+ unset _c
+ sourcex -e /etc/init.d/../conf.d/ntpd.default
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/init.d/../conf.d/ntpd.default ']'
+ return 1
+ sourcex -e /etc/init.d/../conf.d/ntpd
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/init.d/../conf.d/ntpd ']'
+ . /etc/init.d/../conf.d/ntpd
++ NTPD_HOME=/var/lib/openntpd/chroot
++ NTPD_OPTS=
+ sourcex -e /etc/rc.conf
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/rc.conf ']'
+ . /etc/rc.conf
++ unicode=YES
++ EDITOR=/usr/bin/vim
+ '[' -n '' ']'
+ sourcex /etc/init.d/ntpd
+ '[' /etc/init.d/ntpd = -e ']'
+ . /etc/init.d/ntpd
+ unset _d
+ unset _f
+ '[' -n '' ']'
+ '[' -n start ']'
+ '[' start = depend ']'
+ for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands'
+ '[' describe = start ']'
+ for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands'
+ '[' start = start ']'
++ command -v start
+ '[' start = start ']'
+ yesno
+ '[' -z '' ']'
+ return 1
+ unset _cmd
++ command -v start_pre
+ '[' '' = start_pre ']'
+ start
+ checkconfig
+ '[' '!' -f /etc/ntpd.conf ']'
+ '[' -x /usr/bin/getent ']'
++ getent passwd ntp
++ cut -d: -f 6
+ '[' /var/lib/openntpd/chroot '!=' /var/lib/openntpd/chroot ']'
+ checkpath -d -o 0:0 /var/lib/openntpd/chroot
+ return 0
+ mkdir -p /var/lib/openntpd/chroot/etc
+ cp /etc/localtime /var/lib/openntpd/chroot/etc
+ ebegin 'Starting ntpd'
* Starting ntpd ...
+ start-stop-daemon --start --exec /usr/sbin/ntpd --name ntpd --
+ eend 0 'Failed to start ntpd' [ ok ]
++ command -v start_post
+ '[' '' = start_post ']'
+ shift
+ continue 2
+ '[' -n '' ']'amnes ~ # /etc/init.d/ntpd status
* status: crashed
amnes ~ # /etc/init.d/ntpd stop
* Stopping ntpd ...
* start-stop-daemon: no matching processes found
Offline
#5 13.12.11 21:45
Re: не работает star-stop-daemon, почему?
eix net-misc/openntpd
* net-misc/openntpd
Available versions: 3.9_p1-r3 ~3.9_p1-r4 {selinux ssl}
Homepage: http://www.openntpd.org/
Description: Lightweight NTP server ported from OpenBSD
1. Ядро собрано с selinux?
2. В make.conf есть флаги selinux ssl
3. какой профиль выбран?
emerge net-misc/openntpd -avp
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] net-misc/openntpd-3.9_p1-r3 USE="ssl (-selinux)" 164 kB
У меня пакет net-misc/openntpd не стоит а демон есть. :)
Исправлено Apostol (13.12.11 21:52)
Offline

