Josh Hurd

Q: How to disable Lion Server.  For REAL!

The instructions that Apple has recently posted on disbaling Lion server is nowhere near complete.  Don't be fooled.  Following those instructions will NOT completely disbale all the Server services that were installed when you ran the Server app.

 

Through a bit of research I have tracked down ALL the services that are installed when you run the Server app and created a script you can run from Terminal to really disable all of them.

 

This is, of course, a use at your own risk script. It worked fine for me with no apparent ill effects but I can not gaurentee it will not cause you problems.

 

The script can be downloaded from here:

http://www.svrx.com/disable_LionServer.zip

 

Download this, double click to expand the zip.

Then open Terminal and execute the script.  Probably something like:

 

sudo Desktop/disable_LionServer.sh

or

sudo Downloads/disable_LionServer.sh

 

After that restart your computer and be Lion Server free.

 

Let me know if you have any problems with this but again it is use at your own risk.  I am not resposible for any ill effects it may have on your system.

 

Enjoy....

G3, G4, G5, Intel iMac, Mac Pro, MacBook, MacBook Pro, Mini, Mac OS X (10.6)

Posted on Aug 22, 2011 10:34 PM

Close

Q: How to disable Lion Server.  For REAL!

  • All replies
  • Helpful answers

Previous Page 2
  • by zoloe,

    zoloe zoloe Sep 16, 2012 12:00 PM in response to rdrushton
    Level 1 (0 points)
    Sep 16, 2012 12:00 PM in response to rdrushton

    Hi rdrushton. Thanks for letting me know. I'm really sorry for your friend.

  • by zoloe,

    zoloe zoloe Oct 3, 2012 12:55 PM in response to martinfromwestford
    Level 1 (0 points)
    Oct 3, 2012 12:55 PM in response to martinfromwestford

    martinfromwestford,

     

    do you happen to have Josh's script ?

    I do not find a full list which services are installed by server app, and I do not wan to do half work...

     

    please help if you can.

  • by martinfromwestford,

    martinfromwestford martinfromwestford Oct 3, 2012 2:33 PM in response to zoloe
    Level 1 (0 points)
    Oct 3, 2012 2:33 PM in response to zoloe

    First off, my condolences to those of you who knew Josh. I didn't known him personally - other than to use his script - but it's sad to hear of the loss of a valued community member.

     

    I (fortunately) still have Josh's script on my MBP and it's short enough to post and archive it here in this thread.

     

    Copy and paste the code below into your text editor and save it as disable_LionServer.sh in your home directory.

     

    Launch Terminal and enter the following command to make the script executable:

     

    chmod u=rwx,go=rx disable_LionServer.sh

     

    You'll need to run the script as root:

     

    sudo ./disable_LionServer.sh

     

    Good luck!

     

    ================= disable_LionServer.sh ==========================

     

    #! /bin/bash

     

    # Make sure only root can run our script

    if [ "$(id -u)" != "0" ]; then

       echo "This script must be run as root" 1>&2

       echo "Try it like this:  sudo $0" 1>&2

       exit 1

    fi

     

    cd /System/Library/LaunchDaemons/

     

    /bin/launchctl unload -w com.apple.HeadlessStartup.plist &> /dev/null

    /bin/launchctl unload -w com.apple.Rooms.plist &> /dev/null

    /bin/launchctl unload -w com.apple.AppleVNCServer.plist &> /dev/null

    /bin/launchctl unload -w com.apple.afctl.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabauthd.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabcored1.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabcored2.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabcored3.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabcored4.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabd.expire.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabd.notifications.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabd.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabd.quicklook.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabfeedd.plist &> /dev/null

    /bin/launchctl unload -w com.apple.collabsandboxd.plist &> /dev/null

    /bin/launchctl unload -w com.apple.diskspacemonitor.plist &> /dev/null

    /bin/launchctl unload -w com.apple.hwmond.plist &> /dev/null

    /bin/launchctl unload -w com.apple.mail_migration.plist &> /dev/null

    /bin/launchctl unload -w com.apple.natd.plist &> /dev/null

    /bin/launchctl unload -w com.apple.opendirectorybackup.plist &> /dev/null

    /bin/launchctl unload -w com.apple.passwordreset.plist &> /dev/null

    /bin/launchctl unload -w com.apple.pcastserverd.plist &> /dev/null

    /bin/launchctl unload -w com.apple.ppp.l2tp.plist &> /dev/null

    /bin/launchctl unload -w com.apple.ppp.pptp.plist &> /dev/null

    /bin/launchctl unload -w com.apple.push_notify.plist &> /dev/null

    /bin/launchctl unload -w com.apple.salearn.plist &> /dev/null

    /bin/launchctl unload -w com.apple.swupdate.host.plist &> /dev/null

    /bin/launchctl unload -w com.apple.swupdate.sync.plist &> /dev/null

    /bin/launchctl unload -w com.apple.updatesa.plist &> /dev/null

    /bin/launchctl unload -w com.apple.xgridd.pcastserver.plist &> /dev/null

    /bin/launchctl unload -w com.apple.xgridd.pcastserver.plist &> /dev/null

    /bin/launchctl unload -w com.apple.xscertadmin.plist &> /dev/null

    /bin/launchctl unload -w com.apple.xscertd-helper.plist &> /dev/null

    /bin/launchctl unload -w com.apple.xscertd.plist &> /dev/null

    /bin/launchctl unload -w com.apple.xserve.serial-ports.plist &> /dev/null

    /bin/launchctl unload -w org.apache.htcacheclean.plist &> /dev/null

    /bin/launchctl unload -w org.calendarserver.calendarserver.plist &> /dev/null

    /bin/launchctl unload -w org.clamav.clamd.plist &> /dev/null

    /bin/launchctl unload -w org.clamav.freshclam-init.plist &> /dev/null

    /bin/launchctl unload -w org.clamav.freshclam.plist &> /dev/null

    /bin/launchctl unload -w org.dovecot.dovecotd.plist &> /dev/null

    /bin/launchctl unload -w org.dovecot.fts.update.plist &> /dev/null

    /bin/launchctl unload -w org.jabber.jabberd.plist &> /dev/null

    /bin/launchctl unload -w org.jabber.jabberd_notification.plist &> /dev/null

    /bin/launchctl unload -w org.jabber.proxy65.plist &> /dev/null

    /bin/launchctl unload -w org.list.mailmanctl.plist &> /dev/null

    /bin/launchctl unload -w org.postgresql.postgres.plist &> /dev/null


  • by zoloe,

    zoloe zoloe Oct 4, 2012 5:38 AM in response to martinfromwestford
    Level 1 (0 points)
    Oct 4, 2012 5:38 AM in response to martinfromwestford

    thanks very much!

    I could run it with no errors.

    cheers

Previous Page 2