diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-11-13 12:09:41 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-11-13 12:09:41 -0500 |
commit | 43fc7bd8fb286124c25312ede8ef718862ba605e (patch) | |
tree | 4a4784a985640a31358bfa21a111a80b8d3ed0f4 /pcr/samba4/samba4.rc | |
parent | 63547aacae7e3d71226819d76087f566d8cdd0c4 (diff) |
Removing samba4: Use samba instead
Diffstat (limited to 'pcr/samba4/samba4.rc')
-rw-r--r-- | pcr/samba4/samba4.rc | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/pcr/samba4/samba4.rc b/pcr/samba4/samba4.rc deleted file mode 100644 index 73d09fe30..000000000 --- a/pcr/samba4/samba4.rc +++ /dev/null @@ -1,50 +0,0 @@ -#!/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 -D $SAMBA4_ARGS -} - -case "$1" in - start) - stat_busy "Starting Samba4 Server" - if [ ! -x /opt/samba4/var ] ; then - install -m755 -d /opt/samba4/var - fi - if [ ! -x /opt/samba4/var/run ] ; then - install -m755 -d /opt/samba4/var/run - fi - PID=`pidof -o %PPID /opt/samba4/sbin/samba` - [ -z "$PID" ] && call_samba4 - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon samba4 - stat_done - fi - ;; - stop) - stat_busy "Stopping Samba4 Server" - PID=`pidof -o %PPID /opt/samba4/sbin/samba` - [ -z "$PID" ] || kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm /opt/samba4/var/run/samba.pid &> /dev/null - rm_daemon samba4 - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 |