/usr/share/sadms-2.0.15/_signal.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 | #!/bin/bash
# bbou@ac-toulouse.fr
# 2005-07-10 11:50:44
# _signal.sh
### P A R A M S
MYEXCEPTNSCD=
if [ "$1" == "-nonscd" ];then
export MYEXCEPTNSCD="True"
shift
fi
### I N C L U D E
. ./_include.sh
### S T A R T
# samba
echo "--------------------------------------------------------------------------------"
echo "REFRESH SAMBA DAEMONS FROM CONFIG"
echo "--------------------------------------------------------------------------------"
daemons="`pidof winbindd` `pidof nmbd` `pidof smbd`"
if [ "${daemons}" == " " ];then
echo "no running process"
exit 0
fi
echo "signal sent to processes ${daemons}"
kill -s HUP ${daemons}
# nscd
if [ -z "${MYEXCEPTNSCD}" ];then
echo "--------------------------------------------------------------------------------"
echo "REFRESH NSCD DAEMON FROM CONFIG"
echo "older versions of nscd do not support SIGHUP"
echo "--------------------------------------------------------------------------------"
daemons="`pidof nscd`"
echo "signal sent to processes ${daemons}"
kill -s HUP ${daemons}
fi
|