mirror of
git://slackware.nl/current.git
synced 2024-12-30 10:24:23 +01:00
d31c50870d
Thu Jun 30 20:26:57 UTC 2016 Slackware 14.2 x86_64 stable is released! The long development cycle (the Linux community has lately been living in "interesting times", as they say) is finally behind us, and we're proud to announce the release of Slackware 14.2. The new release brings many updates and modern tools, has switched from udev to eudev (no systemd), and adds well over a hundred new packages to the system. Thanks to the team, the upstream developers, the dedicated Slackware community, and everyone else who pitched in to help make this release a reality. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Have fun! :-)
81 lines
1.8 KiB
Bash
81 lines
1.8 KiB
Bash
#!/bin/sh
|
|
#
|
|
# messagebus: The D-BUS systemwide message bus
|
|
#
|
|
# description: This is a daemon which broadcasts notifications of system events \
|
|
# and other messages. See http://www.freedesktop.org/software/dbus/
|
|
#
|
|
# processname: dbus-daemon
|
|
|
|
# This is a modified version of the rc.messagebus script distributed with the
|
|
# dbus sources. Thanks to Don Tanner of the GWare <http://gware.org> Project
|
|
# for most of the work involved --Robby Workman <rworkman@slackware.com>
|
|
|
|
|
|
PIDFILE=/var/run/dbus/dbus.pid
|
|
|
|
start() {
|
|
mkdir -p $(dirname $PIDFILE)
|
|
if ! ps -u messagebus -c | grep -wq dbus-daemon; then
|
|
rm -f $(dirname $PIDFILE)/*
|
|
if [ -x /usr/bin/dbus-uuidgen -a -x /usr/bin/dbus-daemon ] ; then
|
|
echo "Starting system message bus: /usr/bin/dbus-uuidgen --ensure ; /usr/bin/dbus-daemon --system"
|
|
/usr/bin/dbus-uuidgen --ensure
|
|
/usr/bin/dbus-daemon --system 1> /dev/null
|
|
fi
|
|
fi
|
|
}
|
|
|
|
stop() {
|
|
if [ -e "$PIDFILE" ]; then
|
|
echo "Stopping system message bus..."
|
|
pid=$(cat $PIDFILE)
|
|
kill $pid 1> /dev/null 2> /dev/null
|
|
# Just in case:
|
|
killall dbus-daemon 1> /dev/null 2> /dev/null
|
|
rm -f $PIDFILE
|
|
fi
|
|
}
|
|
|
|
reload() {
|
|
echo "Reloading system message bus configuration..."
|
|
if [ -e "$PIDFILE" ]; then
|
|
pid=$(cat $PIDFILE)
|
|
kill -HUP $pid
|
|
else
|
|
killall -HUP dbus-daemon
|
|
fi
|
|
}
|
|
|
|
status() {
|
|
if ps -u messagebus -c | grep -wq dbus-daemon; then
|
|
echo "System dbus-daemon is running."
|
|
else
|
|
echo "System dbus-daemon is stopped."
|
|
fi
|
|
}
|
|
|
|
# See how we were called.
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
restart)
|
|
stop
|
|
start
|
|
echo "You may need to restart your Window Manager to reconnect to the system dbus."
|
|
;;
|
|
reload)
|
|
reload
|
|
;;
|
|
status)
|
|
status
|
|
;;
|
|
*)
|
|
echo $"Usage: $0 {start|stop|restart|reload|status}"
|
|
;;
|
|
esac
|
|
|