diff options
Diffstat (limited to 'net-fs/smbtad/files/smbtad.rc')
-rwxr-xr-x | net-fs/smbtad/files/smbtad.rc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net-fs/smbtad/files/smbtad.rc b/net-fs/smbtad/files/smbtad.rc new file mode 100755 index 000000000000..cf134b4ad39c --- /dev/null +++ b/net-fs/smbtad/files/smbtad.rc @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +CONFFILE=/etc/conf.d/${SVCNAME}.conf +PIDFILE=/var/run/${SVCNAME}.pid + +depend() { + before samba + use dns logger +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --quiet \ + --exec /usr/bin/"${SVCNAME}" \ + -- -c "${CONFFILE}" + eend ${?} +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --name "${SVCNAME}" + eend ${?} +} |