I changed the init system from sysvinit to systemd on a raspbian installation. The install boots fine, but now starts lightdm on boot. I don't want it to do that.I noticed lightdm.service is started on boot. Stopping the service withsystemctl stop lightdm.serviceworks fine.systemctl disable lightdm.service should disable it, but gives meFailed to issue method call: No such file or directorysystemctl status lightdm.service gives melightdm.service - LSB: Light Display Manager      Loaded: loaded (/etc/init.d/lightdm)      Active: inactive (dead) since Thu, 03 Jul 2014 09:33:00 +0000; 22min ago     Process: 762 ExecStop=/etc/init.d/lightdm stop (code=exited, status=0/SUCCESS)     Process: 411 ExecStart=/etc/init.d/lightdm start (code=exited, status=0/SUCCESS)      CGroup: name=systemd:/system/lightdm.serviceI'm assuming that lightdm is started from an init.d script rather than a systemd script, and systemctl disable doesn't work if the source is an init.d script. What should I do instead to disable lightdm starting at boot?edit: More infooutput of $ ls -l /etc/systemd/system: total 20lrwxrwxrwx 1 root root   42 Jul  3 09:04 dbus-fi.epitest.hostap.WPASupplicant.service -> /lib/systemd/system/wpa_supplicant.servicelrwxrwxrwx 1 root root   37 Jul  3 13:03 default.target -> /lib/systemd/system/multi-user.targetdrwxr-xr-x 2 root root 4096 Jul  3 09:00 getty.target.wantsdrwxr-xr-x 2 root root 4096 Jul  3 09:04 graphical.target.wantsdrwxr-xr-x 2 root root 4096 Oct 11  2013 local-fs.target.wantsdrwxr-xr-x 2 root root 4096 Jul  3 09:04 multi-user.target.wantsdrwxr-xr-x 2 root root 4096 Oct 11  2013 sysinit.target.wantslrwxrwxrwx 1 root root   35 Mar 20  2013 syslog.service -> /lib/systemd/system/rsyslog.serviceoutput of systemctl --all -t target:UNIT                LOAD   ACTIVE   SUB    JOB DESCRIPTIONall.target          error  inactive dead       all.targetbasic.target        loaded active   active     Basic Systemcryptsetup.target   loaded active   active     Encrypted Volumesemergency.target    loaded inactive dead       Emergency Modefinal.target        loaded inactive dead       Final Stepgetty.target        loaded active   active     Login Promptslocal-fs-pre.target loaded active   active     Local File Systems (Pre)local-fs.target     loaded active   active     Local File Systemsmulti-user.target   loaded active   active     Multi-Usernetwork.target      loaded inactive dead       Networknss-lookup.target   loaded inactive dead       Name Lookupsremote-fs.target    loaded active   active     Remote File Systemsrescue.target       loaded inactive dead       Rescue Modeshutdown.target     loaded inactive dead       Shutdownsockets.target      loaded active   active     Socketssound.target        loaded active   active     Sound Cardswap.target         loaded active   active     Swapsysinit.target      loaded active   active     System Initializationsyslog.target       loaded active   active     Syslogtime-sync.target    loaded inactive dead       System Time Synchronizedumount.target       loaded inactive dead       Unmount All Filesystemsoutput of ls -l /etc/systemd/system/multi-user.target.wants/:total 8drwxr-xr-x 2 root root 4096 Jul  3 09:04 .drwxr-xr-x 7 root root 4096 Jul  3 13:03 ..lrwxrwxrwx 1 root root   36 Oct 11  2013 remote-fs.target -> /lib/systemd/system/remote-fs.targetlrwxrwxrwx 1 root root   33 Jul  3 09:04 rsync.service -> /lib/systemd/system/rsync.servicelrwxrwxrwx 1 root root   35 Mar 20  2013 rsyslog.service -> /lib/systemd/system/rsyslog.servicelrwxrwxrwx 1 root root   32 Jul  3 09:04 sudo.service -> /lib/systemd/system/sudo.servicelrwxrwxrwx 1 root root   42 Jul  3 09:04 wpa_supplicant.service -> /lib/systemd/system/wpa_supplicant.service
disable init.d script in systemd
debian;systemd;raspbian;init.d
Try (as root):-systemctl disable graphical.targetAfter a restart, you should be in multi-user mode as opposed to graphical.If that fails, check what your default target is with:-ls -l /lib/systemd/system/default.target# or, depending on your distrols -l /etc/systemd/system/default.targetNote that the only difference in the paths is the top level directory - either /lib or /etc.The above should be a soft link to multi-user.target.  If it points to graphical.target then change it using (as root):-ln -sf /lib/systemd/system/multi-user.target /lib/systemd/system/default.target# orln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.targetdepending on where the soft link was found in the previous ls -l command.Reboot and hopefully your display manager won't start.To see what targets you have,  run:-systemctl --all -t target