Hi all,

I have installed FC-4 and samba did not run correctly when it started from
init script. I tried to debug it and could not find any problem with the
script. I *moved* this script (smb) to a different name (smb.org) and then
*copied* this script to the  original name and it worked.

With the original script I still get the same error. The error is "
   [EMAIL PROTECTED] init.d]# ./smb.org start
   Starting SMB services: /etc/init.d/functions: line 83: 31449 Aborted
$nice $*
                                                          [FAILED]
"

I have checked the permissions, checksums and lsattr of both script and they
give the same value. Could someone tell me what could be wrong with the
script (smb.org).

   [EMAIL PROTECTED] init.d]# ll smb*
   -rwxr-xr-x  1 root root 2020 Sep  2 12:43 smb
   -rwxr-xr-x  1 root root 2020 Sep  2 12:44 smb.org

   [EMAIL PROTECTED] init.d]# cksum smb*
   2530385171 2020 smb
   2530385171 2020 smb.org

   [EMAIL PROTECTED] init.d]# sha1sum smb*
   9ec8404d79d4293bb9d2e9c8c4a49a567fd6ab66  smb
   9ec8404d79d4293bb9d2e9c8c4a49a567fd6ab66  smb.org

   [EMAIL PROTECTED] init.d]# lsattr smb*
   ------------- smb
   ------------- smb.org

   [EMAIL PROTECTED] init.d]# cmp smb smb.org

   [EMAIL PROTECTED] init.d]# diff -d smb smb.org

Relevant part of strace output for working script:
=====================================

stat64("/sbin/smbd", 0xbf9bb034)        = -1 ENOENT (No such file or
directory)
stat64("/usr/sbin/smbd", {st_mode=S_IFREG|0755, st_size=3055640, ...}) = 0
access("/usr/sbin/smbd", X_OK)          = 0
stat64("/usr/sbin/smbd", {st_mode=S_IFREG|0755, st_size=3055640, ...}) = 0
access("/usr/sbin/smbd", X_OK)          = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -9, [2011], SEEK_CUR)      = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7fa6a28) = 31891
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x80760d4, [], 0}, {SIG_DFL}, 8) = 0
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 31891
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbf9bad5c, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])


Relevant part of strace output for Not-working script:
========================================

stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/sbin/smbd", 0xbfd3b7e4)        = -1 ENOENT (No such file or
directory)
stat64("/usr/sbin/smbd", {st_mode=S_IFREG|0755, st_size=3055640, ...}) = 0
access("/usr/sbin/smbd", X_OK)          = 0
stat64("/usr/sbin/smbd", {st_mode=S_IFREG|0755, st_size=3055640, ...}) = 0
access("/usr/sbin/smbd", X_OK)          = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -9, [2011], SEEK_CUR)      = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7f28a28) = 31865
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x80760d4, [], 0}, {SIG_DFL}, 8) = 0
waitpid(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0) = 31865
fstat64(2, {st_mode=S_IFREG|0644, st_size=21454, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7d20000
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
write(2, "/etc/init.d/functions: line 83: "..., 71/etc/init.d/functions:
line 83: 31865 Aborted                 $nice $*
) = 71
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbfd3b50c, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
linux-india-help mailing list
linux-india-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to