Control: tags -1 wontfix Control: close -1 On Sun, 03 Aug 2014 23:43:50 +0200 debianizzato <fireswo...@yahoo.it> wrote: > Package: systemd > Version: 208-6 > Severity: normal > > Dear Maintainer, > I have already sent a bugreport to wpasupplicant package maintainer: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756847 > and I was suggested to report here. > > Wpa_supplicant service is reset by systemd when I isolate a target. > I think that it is not a desiderable behaviour. > > I use Gnome 3 in Debian Jessie. > > This is what I did: > I copied /lib/systemd/system/graphical.target to /etc/systemd/system/personalizzato.target > in which I added "mysql" and "apache2" to "Conflicts" in order to not start those services, > and added "Wants= accounts-daemon-service" because graphical.target "Wants" it. > > # Target di prova > # > # Provo a disattivare l' avvio di apache e mysql > # Aggiungo Wants= accounts-daemon-service perchè graphical.target lo carica > > [Unit] > Description=Eredita Graphical Interface > Documentation=man:systemd.special(7) > Requires=multi-user.target > After=multi-user.target > Conflicts=rescue.target mysql.service apache2.service > Wants=display-manager.service accounts-daemon.service > AllowIsolate=yes > > [Install] > Alias=default.target > > Everything works fine, except that WiFi connection disconnects and then reconnects. > I found that it is wpa_supplicant.service that is restarted when isolating a target. > > I solved this issue simply creating a directory "/etc/systemd/system/wpa_supplicant.service.d" > in which I created a personalized.conf file with the following 2 lines: > > [Unit] > IgnoreOnIsolate=true > > In this way wpa_supplicant is not reset when isolating a target. > > Do you think it is a good solution ? > wpa_supplicant.service will be patched in that way ?
Yes, if you want a unit to survive into an unrelated isolate, then you need to mark it as such, or pull it in. This is working as intended. -- Kind regards, Luca Boccassi
signature.asc
Description: This is a digitally signed message part