The Junos Pulse 5.0.3 VPN client had been working fine on my Mac OS X laptop for quite some time, but recently whenever I opened it, it would show "Disconnecting". I could click on the Connect button, which resulted in the application displaying "connect requested", but the application would never connect nor disconnect. I could select "Close Junos Pulse" in the application, but when I restarted the application I was in the same situation. I could probably have resolved the problem by rebooting, but since I had a lot of applications and files open and didn't want to have to close all the files and applications, I looked for another alternative. Issuing the following commands at a command prompt from a terminal window allowed me to eliminate the problem without rebooting.
$ launchctl unload -w /Library/LaunchAgents/net.juniper.pulsetray.plist $ sudo launchctl unload -w /Library/LaunchDaemons/net.juniper.AccessService.plist Password: $ osascript -e 'tell application "Junos Pulse" to quit'
The account I was logged in under had adminisrator level access, so I simply provided its password at the password prompt above.
When I reopened Junos Pulse afterwards, it wasn't showing any available connections, so I closed it and then issued the commands below.
$ sudo launchctl load -w /Library/LaunchDaemons/net.juniper.AccessService.plist $ launchctl load -w /Library/LaunchAgents/net.juniper.pulsetray.plist
When I then reopened the Junos Pulse application through the Finder, I saw the VPN connection I normally use and was able to successfully establish a VPN connection. And I was able to disconnect without a problem afterwards.