systemd: simplify unit file

Avoid setting up the Alias rule, which was a helper to let us 'disable' the
systemd service including dbus-activations. Without the Alias, 'disable' will
still let starting ModemManager through dbus-activation. If you really want to
fully disallow starting MM also through dbus-activation, you should 'mask' and
'unmask' the service.

E.g.:
 $ sudo systemctl mask ModemManager
ln -s '/dev/null' '/etc/systemd/system/ModemManager.service'

 $ sudo mmcli -L
error: couldn't find the ModemManager process in the bus

 $ sudo systemctl unmask ModemManager
rm '/etc/systemd/system/ModemManager.service'

 $ sudo mmcli -L
No modems were found

https://bugzilla.gnome.org/show_bug.cgi?id=701229
This commit is contained in:
Aleksander Morgado
2013-06-06 10:07:17 +02:00
parent 81451db1d7
commit 91898aa8b0
5 changed files with 4 additions and 24 deletions
-1
View File
@@ -10,4 +10,3 @@ StandardError=null
[Install]
WantedBy=multi-user.target
Alias=dbus-org.freedesktop.ModemManager1.service