Cannot start SAMBA Daemon: Daemon script samba does not exis

Ask questions about Arch Linux ARM. Please search before making a new topic.

Re: Cannot start SAMBA Daemon: Daemon script samba does not

Postby pepedog » Wed Jan 30, 2013 10:36 am

So you have rebooted?
This starts it now
$this->bbcode_second_pass_code('', 'systemctl start smbd')
This starts it on boot
$this->bbcode_second_pass_code('', 'systemctl enable smbd')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cannot start SAMBA Daemon: Daemon script samba does not

Postby dinjo » Wed Jan 30, 2013 2:09 pm

Same thing for me this happened after samba was upgraded recently any solutions
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Cannot start SAMBA Daemon: Daemon script samba does not

Postby dinjo » Wed Jan 30, 2013 2:20 pm

When I tried to downgrade it says
/usr/include/wbclienth.h exists in filesystem
Conflicting files
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Cannot start SAMBA Daemon: Daemon script samba does not

Postby pepedog » Wed Jan 30, 2013 2:42 pm

What does this show
$this->bbcode_second_pass_code('', 'systemctl status smbd')
And what does this say
$this->bbcode_second_pass_code('', 'testparm')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cannot start SAMBA Daemon: Daemon script samba does not

Postby dinjo » Wed Jan 30, 2013 4:49 pm

I'm not on systemd i got it working after i removed the recent version and reinstalled it but only when i typed in smbd manually


Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Unknown parameter encountered: "printingcap name"
Ignoring unknown parameter "printingcap name"
Unknown parameter encountered: "disable spools"
Ignoring unknown parameter "disable spools"
Processing section "[Pogo]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Cannot start SAMBA Daemon: Daemon script samba does not

Postby pepedog » Wed Jan 30, 2013 5:13 pm

I got an original samba rc script, is should be saved a /etc/rc.d/samba and made executable
$this->bbcode_second_pass_code('', '#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
[ -f /etc/conf.d/samba ] && . /etc/conf.d/samba

[ -z "$SAMBA_DAEMONS" ] && SAMBA_DAEMONS=(smbd nmbd)

case "$1" in
start)
rc=0
stat_busy "Starting Samba Server"
if [ ! -x /var/run/samba ] ; then
install -m755 -g 81 -o 81 -d /var/run/samba
fi
if [ ! -x /var/log/samba ] ; then
install -m755 -g 81 -o 81 -d /var/log/samba
fi
for d in ${SAMBA_DAEMONS[@]}; do
PID=`pidof -o %PPID /usr/sbin/$d`
[ -z "$PID" ] && /usr/sbin/$d -D
rc=$(($rc+$?))
done
if [ $rc -gt 0 ]; then
stat_fail
else
add_daemon samba
stat_done
fi
;;
stop)
rc=0
stat_busy "Stopping Samba Server"
for d in ${SAMBA_DAEMONS[@]}; do
PID=`pidof -o %PPID /usr/sbin/$d`
[ -z "$PID" ] || kill $PID &> /dev/null
rc=$(($rc+$?))
done
if [ $rc -gt 0 ]; then
stat_fail
else
rm /var/run/samba/smbd.pid &>/dev/null
rm /var/run/samba/nmbd.pid &>/dev/null
rm /var/run/samba/winbindd.pid &>/dev/null
rm_daemon samba
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cannot start SAMBA Daemon: Daemon script samba does not

Postby dinjo » Thu Jan 31, 2013 6:57 am

Thanks but do we know what happened here ?
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Cannot start SAMBA Daemon: Daemon script samba does not

Postby pepedog » Thu Jan 31, 2013 9:58 am

Yes, archlinuxarm follows archlinux, they have started using systemd and support for old stuff is not going to have that support.
It's been happening for months, timemachine and others lost it a while ago.
Perhaps someone ought to collect these scripts?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cannot start SAMBA Daemon: Daemon script samba does not

Postby chris5h » Thu Jan 31, 2013 3:42 pm

Hey Pepedog, thank for your help with this. I started over from the your first reply to this post and (somehow) in the end I got systemd working and Samba running. Thank you again for all of your help.
chris5h
 
Posts: 44
Joined: Mon May 14, 2012 1:18 pm

Previous

Return to User Questions

Who is online

Users browsing this forum: No registered users and 39 guests