4

Samba4

view full story
linux-howto

https://bbs.archlinux.org – Samba4 init script.My configure prefix was /opt/samba4 (as in aur package). So if you have configured default location, please change this path to /usr/local/samba in script./etc/rc.d/samba4:#!/bin/bash . /etc/rc.conf . /etc/rc.d/functions [ -f /etc/conf.d/samba4 ] && . /etc/conf.d/samba4 function call_samba4() { /opt/samba4/sbin/samba $SAMBA4_ARGS } case "$1" in start) stat_busy "Starting Samba4" [ ! -f /var/run/daemons/samba4 ] && call_samba4 if [ $? -gt 0 ]; then stat_fail else add_daemon samba4 stat_done (HowTos)