On Fri, 25.02.11 20:05, Miklos Vajna ([email protected]) wrote: > On Thu, Feb 24, 2011 at 11:39:49PM +0100, Rave it <[email protected]> > wrote: > > i want to disable bluetooth.service in fedora 15 because i don't needed. > > Normaly i removed bluez but now a days bluez have gnome-shell as an > > dependency. > > I try to do this with: > > [root@mother rave]# systemctl stop bluetooth.service > > [root@mother rave]# systemctl disable bluetooth.service > > > > But this helps only for a moment, after a restart bluetooth.service > > starts again. > > I think disabling bluetooth.service is possible because: > > [root@mother rave]# systemctl show -p "Wants" bluetooth.service > > Wants= > > > > So what i can do to solve this prob? Or isn't it possible? > > It starts because of bus activation. > > A hack I can imagine is copying /lib/systemd/system/bluetooth.service to > /etc/systemd/system/bluetooth.service and change /usr/sbin/bluetoothd -n > to /bin/true.
It's much nicer to "mask" things. In systemd if a service file is linked to /dev/null systemd will notice that and show it as "masked" and refuse any kind of activation. It's a bit of a hidden feature, since the normal way of disabling things should be good enough and we don't want to confuse users unnecessarily, but for everything else there is this hardcore way of disabling called masking. Lennart -- Lennart Poettering - Red Hat, Inc. _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
