[FC4] samba startet nicht über /etc/init.d/smb start - sonst gehts aber
Hallo,
habe hier wieder ein nettes Problem. (Fedora Core 4)
Samba (3.0.14a) lässt sich nicht per "/etc/init.d/smb start" starten, -> failed
Allerdings aus Swat sowie der console mit "smbd -D" startet es ohne Probleme.
Logfile /var/log/samba/log.smbd bei start über /etc/init.d/smb start:
In /etc/init.d/smb wird samba über "daemon smbd -D" gestartet,
wobei daemon eine Funktion aus /etc/init.d/functions ist:
Und da sehe ich nicht mehr 100% durch,
sieht jemand anderes durch ?
/edit
identisches Problem bei winbind
nmbd läuft aber wunderbar über das script obwohl es genauso mit "daemon nmbd -D" gestartet wird.
/edit v.2
samba update auf 3.0.14a-2
-> es startet jetzt auch über das init-script, aber man kann nicht auf freigaben zugreifen
Über console direkt oder swat gestartet geht alles super
dow
Hallo,
habe hier wieder ein nettes Problem. (Fedora Core 4)
Samba (3.0.14a) lässt sich nicht per "/etc/init.d/smb start" starten, -> failed
Allerdings aus Swat sowie der console mit "smbd -D" startet es ohne Probleme.
Logfile /var/log/samba/log.smbd bei start über /etc/init.d/smb start:
Code:
[2005/06/26 12:53:21, 1] lib/util_unistr.c:load_case_tables(78)
creating lame lowcase table
[2005/06/26 12:53:21, 0] smbd/server.c:main(798)
smbd version 3.0.14a started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/06/26 12:53:21, 0] groupdb/mapping.c:init_group_mapping(134)
Failed to open group mapping database
[2005/06/26 12:53:21, 0] groupdb/mapping.c:get_group_map_from_gid(275)
failed to initialize group mapping
[2005/06/26 12:53:21, 0] lib/account_pol.c:init_account_policy(60)
Failed to open account policy database
[2005/06/26 12:53:21, 0] lib/account_pol.c:init_account_policy(60)
Failed to open account policy database
[2005/06/26 12:53:21, 0] lib/account_pol.c:init_account_policy(60)
Failed to open account policy database
[2005/06/26 12:53:21, 0] lib/account_pol.c:init_account_policy(60)
Failed to open account policy database
[2005/06/26 12:53:21, 0] lib/account_pol.c:init_account_policy(60)
Failed to open account policy database
[2005/06/26 12:53:21, 0] lib/account_pol.c:init_account_policy(60)
Failed to open account policy database
[2005/06/26 12:53:21, 0] lib/pidfile.c:pidfile_create(98)
ERROR: can't open /var/run/smbd.pid: Error was File exists
In /etc/init.d/smb wird samba über "daemon smbd -D" gestartet,
wobei daemon eine Funktion aus /etc/init.d/functions ist:
Code:
# A function to start a program.
daemon() {
# Test syntax.
local gotbase= force=
local base= user= nice= bg= pid=
nicelevel=0
while [ "$1" != "${1##[-+]}" ]; do
case $1 in
'') echo $"$0: Usage: daemon [+/-nicelevel] {program}"
return 1;;
--check)
base=$2
gotbase="yes"
shift 2
;;
--check=?*)
base=${1#--check=}
gotbase="yes"
shift
;;
--user)
user=$2
shift 2
;;
--user=?*)
user=${1#--user=}
shift
;;
--force)
force="force"
shift
;;
[-+][0-9]*)
nice="nice -n $1"
shift
;;
*) echo $"$0: Usage: daemon [+/-nicelevel] {program}"
return 1;;
esac
done
# Save basename.
[ -z "$gotbase" ] && base=${1##*/}
# See if it's already running. Look *only* at the pid file.
if [ -f /var/run/${base}.pid ]; then
local line p
read line < /var/run/${base}.pid
for p in $line ; do
[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
done
fi
[ -n "${pid:-}" -a -z "${force:-}" ] && return
# make sure it doesn't core dump anywhere unless requested
ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0} >/dev/null 2>&1
# if they set NICELEVEL in /etc/sysconfig/foo, honor it
[ -n "$NICELEVEL" ] && nice="nice -n $NICELEVEL"
# Echo daemon
[ "${BOOTUP:-}" = "verbose" -a -z "$LSB" ] && echo -n " $base"
# And start it up.
if [ -z "$user" ]; then
$nice $*
else
$nice runuser -s /bin/bash - $user -c "$*"
fi
[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}
Und da sehe ich nicht mehr 100% durch,
sieht jemand anderes durch ?
/edit
identisches Problem bei winbind
nmbd läuft aber wunderbar über das script obwohl es genauso mit "daemon nmbd -D" gestartet wird.
/edit v.2
samba update auf 3.0.14a-2
-> es startet jetzt auch über das init-script, aber man kann nicht auf freigaben zugreifen
Über console direkt oder swat gestartet geht alles super
dow
Zuletzt bearbeitet: