/etc/init.d/qtsmbstatusd is in qtsmbstatus-server 2.2.1-3build1.
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 56 57 58 59 60 61 62 63 64 65 66 67 | #!/bin/sh
# script for qtsmbstatusd
#
# For LSB
### BEGIN INIT INFO
# Provides: qtsmbstatusd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: smbd samba-ad-dc
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start qtsmbstatusd server at boot time
# Description: QtSmbstatus is a graphical user interface for smbstatus
### END INIT INFO
NAME=qtsmbstatusd
# see if qtsmbstatusd is running
pid=`ps ax | awk '{print $1,$5}' | grep $NAME | awk '{print $1}' | awk '{print $1}'`
# get locale
default_locale=en_US.UTF-8
if [ -f /etc/default/locale ]; then
# Debian systems
system_locale=`grep -re "LANG=" /etc/default/locale | awk 'BEGIN { FS = "[\"]" } { print $2 }'`
fi
if [ -z $system_locale ]; then system_locale=$default_locale; fi
# Start or stop the qtsmbstatusd server
case $1 in
start | restart | reload | force-reload)
export LANG=$system_locale
if test "$pid" != ""; then
kill $pid
if /usr/bin/qtsmbstatusd -d; then
echo "qtsmbstatusd server restarted."
fi
else
if /usr/bin/qtsmbstatusd -d; then
echo "qtsmbstatusd server started."
fi
fi
;;
stop)
if test "$pid" != ""; then
kill -3 $pid
fi
echo "qtsmbstatusd server stopped"
;;
status)
if test "$pid" != ""; then
echo "qtsmbstatusd : server is running."
else
echo "qtsmbstatusd : server is not running."
fi
;;
*)
echo "Usage: qtsmbstatusd {start|stop|reload|restart|status|force-reload}"
exit 1
;;
esac
exit 0
|