/usr/share/sadms-2.0.15/conf/config-smb.sh is in sadms 2.0.15.repack-0ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #!/bin/bash
# bbou@ac-toulouse.fr
# 2006-08-25 08:55:11
# conf/config-smb.sh
### P A R A M S
# none
### I N C L U D E S
. ./_include.sh
### M O D I F I E D F I L E S ...
# none
### S T A R T
# S E R V I C E A U T O S T A R T
echo "+${SAMBASERVICE} automatic startup"
${SERVICEADD} ${SAMBASERVICE} > /dev/null;
# S E R V I C E
echo "+start ${SAMBASERVICE}"
if ${SERVICESTATUS} ${SAMBASERVICE} > /dev/null; then
${SERVICE} ${SAMBASERVICE} restart > /dev/null
else
${SERVICE} ${SAMBASERVICE} start > /dev/null
fi
if ${SERVICESTATUS} ${SAMBASERVICE} > /dev/null; then
echo "${SAMBASERVICE} started"
else
echo "${SAMBASERVICE} failed to start" >&2
exit 1
fi
if [ ! -z "${NMBSERVICE}" ]; then
# S E R V I C E A U T O S T A R T
echo "+${NMBSERVICE} automatic startup"
${SERVICEADD} ${NMBSERVICE} > /dev/null;
# S E R V I C E
echo "+start ${NMBSERVICE}"
if ${SERVICESTATUS} ${NMBSERVICE} > /dev/null; then
${SERVICE} ${NMBSERVICE} restart > /dev/null
else
${SERVICE} ${NMBSERVICE} start > /dev/null
fi
if ${SERVICESTATUS} ${NMBSERVICE} > /dev/null; then
echo "${NMBSERVICE} started"
else
echo "${NMBSERVICE} failed to start" >&2
exit 1
fi
fi
|