Temporarily stop nfs service?

I have a MacBook Pro and Air, running 10.6.6. When I'm on a plane, I want to stop NFS, as it's constantly trying to remount NFS mounts that aren't accessible (that I have loaded in DiskUtility/NFS).
I find myself manually unmounting the nfs mounts about every 1-5 minutes.
But I'd prefer to temporarily disable the NFS service when on a plane. On normal Linux, I use /etc/inet.d/nfs stop and start. I've tried SystemStarter and nfsd, but neither seem to actually do anything.
Any ideas? I'd prefer not to remove my NFS mounts from DiskUtility each time I'm disconnected, I just want to disable them temporarily.
Thanks in advance for any help!
-Mark

I have a MacBook Pro and Air, running 10.6.6. When I'm on a plane, I want to stop NFS, as it's constantly trying to remount NFS mounts that aren't accessible (that I have loaded in DiskUtility/NFS).
I find myself manually unmounting the nfs mounts about every 1-5 minutes.
But I'd prefer to temporarily disable the NFS service when on a plane. On normal Linux, I use /etc/inet.d/nfs stop and start. I've tried SystemStarter and nfsd, but neither seem to actually do anything.
Any ideas? I'd prefer not to remove my NFS mounts from DiskUtility each time I'm disconnected, I just want to disable them temporarily.
Thanks in advance for any help!
-Mark

Similar Messages

  • Stop systemd.service by other systemd.service (nfs)

    Hi there,
    I'm currently tweaking my nfs setup.
    What do I want
    Mount my exported directories via bind to export, when the nfs-server starts. And unmount the directories on stop of the nfs-server
    Approach
    /etc/systemd/system/nfs.target
    [Unit]
    Description=Network File System Server
    Wants=export-daten.mount export-daten-Downloads.mount export-portage.mount export-root.mount export-root-boot.mount
    Requires=nfs-server.service
    BindsTo=nfs-server.service
    [Install]
    WantedBy=multi-user.target
    /etc/systemd/system/export-daten.mount
    [Unit]
    Description=/home/blubb/Daten nach /export/daten
    BindsTo=nfs-server.service
    StopWhenUnneeded=true
    [Mount]
    What=/home/blubb/Daten
    Where=/export/daten
    Options=bind
    [Install]
    WantedBy=nfs.target
    ls nfs.target.wants
    export-daten-Downloads.mount export-daten.mount export-portage.mount export-root-boot.mount export-root.mount
    nfs-server.service is the original one shipped by Arch in /usr/lib/systemd/system.
    Current behaviour
    start nfs.target: mounts directories, starts nfs-server
    stop nfs.target: unmounts directories,  doesn't stop nfs-server
    start nfs-server.service fails, because can't export /export/daten/Downloads, which doesn't exist, because the mount-units were not processed.
    stop nfs-server.service: umount directories (due to the BindsTo directive) and stops the nfs.target.
    Desired behaviour
    The current behaviour works, but isn't very clean. Would be nice, if nfs.target stops the nfs-server.service too. I don't want nfs-server.service copy to /etc and modify as I will miss any updates of the original unit in /usr/lib.
    Is it possible to stop nfs-server.service in/by nfs.target?

    Tanks, works so far. One problem is left.
    For some reason, nfs option nohide doesn't work. So I have to export other filesystems in subtree too. My 2 units:
    export-daten.mount
    [Unit]
    Description=/home/sm/Daten nach /export/daten
    BindsTo=nfs-server.service
    StopWhenUnneeded=true
    [Mount]
    What=/home/sm/Daten
    Where=/export/daten
    Options=bind
    [Install]
    WantedBy=nfs.target
    and the filesystem, which is mounted in there:
    export-daten-Downloads.mount
    [Unit]
    Description=/home/sm/Daten/Downloads nach /export/daten/Downloads
    BindsTo=nfs-server.service
    Requires=export-daten.mount
    StopWhenUnneeded=true
    [Mount]
    What=/home/sm/Daten/Downloads
    Where=/export/daten/Downloads
    Options=bind
    [Install]
    WantedBy=nfs.target
    According to the Manpage I'm not sure, if the Requires option is even recognized. Mounting works. But when I stop my nfs-server, I get this message:
    journalctl
    Feb 12 07:23:53 Nas systemd[1]: Stopping Network File System Server.
    Feb 12 07:23:53 Nas systemd[1]: Stopped target Network File System Server.
    Feb 12 07:23:53 Nas systemd[1]: Unit export-daten-Downloads.mount is not needed anymore. Stopping.
    Feb 12 07:23:53 Nas systemd[1]: Unit export-portage.mount is not needed anymore. Stopping.
    Feb 12 07:23:53 Nas systemd[1]: Unit export-root-boot.mount is not needed anymore. Stopping.
    Feb 12 07:23:53 Nas systemd[1]: Unmounting /boot nach /export/root/boot...
    Feb 12 07:23:53 Nas systemd[1]: Unit export-root.mount is not needed anymore. Stopping.
    Feb 12 07:23:53 Nas systemd[1]: Unmounting /var/portage nach /export/portage...
    Feb 12 07:23:53 Nas systemd[1]: Stopping NFS server and services...
    Feb 12 07:23:53 Nas systemd[1]: Unmounting /home/sm/Daten/Downloads nach /export/daten/Downloads...
    Feb 12 07:23:53 Nas systemd[1]: Unit export-daten.mount is not needed anymore. Stopping.
    Feb 12 07:23:53 Nas systemd[1]: Unit export-root-home-sm-Daten-Downloads.mount entered failed state.
    Feb 12 07:23:53 Nas kernel: nfsd: last server has exited, flushing export cache
    Feb 12 07:23:53 Nas systemd[1]: Unmounted /boot nach /export/root/boot.
    Feb 12 07:23:53 Nas systemd[1]: Unit export-root.mount is not needed anymore. Stopping.
    Feb 12 07:23:53 Nas systemd[1]: Unmounted /var/portage nach /export/portage.
    Feb 12 07:23:53 Nas systemd[1]: Unmounted /home/sm/Daten/Downloads nach /export/daten/Downloads.
    Feb 12 07:23:53 Nas systemd[1]: Unit export-daten.mount is not needed anymore. Stopping.
    Feb 12 07:23:53 Nas systemd[1]: Stopped NFS server and services.
    Feb 12 07:23:53 Nas systemd[1]: Stopping NFS Mount Daemon...
    Feb 12 07:23:53 Nas rpc.mountd[21709]: Caught signal 15, un-registering and exiting.
    Feb 12 07:23:53 Nas systemd[1]: Unmounting /home/sm/Daten nach /export/daten...
    Feb 12 07:23:53 Nas systemd[1]: Unmounting / nach /export/root...
    Feb 12 07:23:53 Nas systemd[1]: Stopped NFS Mount Daemon.
    Feb 12 07:23:53 Nas systemd[1]: Unmounted /home/sm/Daten nach /export/daten.
    Feb 12 07:23:53 Nas systemd[1]: Unmounted / nach /export/root.
    Manpage:
    If a mount point is beneath another mount point in the file system hierarchy, a dependency between both units is created automatically.
    It seems, that works for mounting, but not for the umount.
    Can I do something to unmount that stuff cleaner?

  • Temporarily stopping the SCEP Microsoft Antimalware Service

    I know that Microsoft has made the MsMpSvc service tamper proof as per this article:
    http://blogs.technet.com/b/mspfe/archive/2013/02/19/anti-tampering-for-the-antimalware-service-in-system-center-endpoint-protection-2012-sp1.aspx
    Then I read this forum post here about using PSExec to temporarily disable it:
    https://social.technet.microsoft.com/Forums/forefront/en-US/f4347d13-5c9a-4395-b070-9aa53d613f68/is-there-a-way-to-restart-the-microsoft-antimalware-service?forum=FCSNext
    But, I want to know if there is ANYWAY possible to automate this process using a script, PowerShell preferably?
    Thanks

    Because I am an evil scientist wanting to take over the world. 
    LOL
    Well my manager asked me to look into this because there are steps in troubleshooting certain issues with some applications used in our environment and one of those steps is to temporarily disable the AV\Antimalware service. 
    I know Symantec Endpoint Protection offered something like this, but there is nothing I can find for SCEP. 
    This may be a deal breaker here to use SCEP if I can't find a way to do this and we may have to use SEP rather than SCEP, but this is not what we want. 
    Also, it's not always easy to be privy to which exclusions to create for certain software products, so having the ability of temporarily stop it to see if it is the culprit regarding issues is much more convenient. 

  • 'our IMAP server appears to be temporarily out of service' - help !!

    When logging in I get this error message on my e-mail:
    'your IMAP server appears to be temporarily out of service'
    Any assistance please? Much appreciated.....

    Call your ISP or whoever hosts your mail server and ask them if something is going on...

  • Error stopping 'Bonjour Service' when trying to download itunes 9.2

    i recently tried to update itunes to 9.2 on my windows. The automatic download had an error so i ended up having to do it manually. When trying to download itunes, i encountered an error message saying that bojour services could not be stopped. It asked me to verify that I have sufficient privelages to stop system services (??!!). I decided I would try to delete bonjour all together, but i couldn't find it anywhere on my computer. I am so confused and all i really want is to update itunes. Please help!!

    HRESULT: 0x8007054f.
    ... that seems to have been the most popular alphanumeric code in recent days. (Just like katherine's one.)
    In general, these ones tend to be caused by underlying problems on the PC that can prevent Windows Updates from installing. So my main strategy with them is to try to fix the Windows Update issues. If we can get Windows Updates flowing again, that generally clears up the iTunes install errors +en passant.+
    Head into your Windows Update, and check for any new updates. Do any fail? If so, open your Update History and doubleclick on the failure entries to bring up a small box with alphanumeric error message codes. Are you getting 8000FFFFs? (They often seem to be associated with an iTunes-install 0x8007054f.)
    If you're getting 8000FFFFs, try the following Microsoft document:
    [Windows Update Error 8000FFFF|http://windows.microsoft.com/en-US/windows-vista/Windows-Update-Error- 8000FFFF]
    Head back to Windows Update, and see if you can get Updates to install successfully this time. If you can get updates now, stock up on any updates you're behind on. Once you're completely up to date in that regard, try another iTunes install. Does it go through properly this time?

  • How to stop the services provided by net80 and oracle9i

    how to stop the services provided by net80 and oracle9i during the installation of forms6i & reports6i in windows 2003 server

    Go into the control panel and choose services ... stop the services.

  • Installing Patch 9.2.0.5: Weird "Stop Running Services" Screen

    Hi to all.
    I found this issue in several places, including this forum, but I never saw a working proposal for a satisfying solution. Installing Oracle Patch 9.2.0.5 over a 9.2.0.1-Installation on XP Pro, I was confronted with a "Stop Running Services" screen, that listed ALL running Windows Services, even the most basic ones, which are required for a working OS and cannot/should not be stopped. Of course I had stopped the Oracle listener and instance services (including the recovery service, omtsreco.exe).
    I found using TASKLIST.EXE or LISTDLLS.EXE, that many Oracle DLLs like ORAPLS9.DLL were used by a command "svchost -k netsvcs". But I could not find out, where and for what reason this command is launched and how I can prevent this launching without hazarding the system. The string "netsvcs" can not be found in the registry, for instance.
    At least, somehow I managed to do the job, but I cannot exactly recall all the steps I took! At the "Stop Running Services" screen I chose "Abort current component and continue installation", and after install finished (it said something like "install finished with errors" or that like), I was left with a non-functioning Oracle client. Whopee! It told me "Bad function entry point" when I tried to start SQL*Plus. Desperately, I started the patch installation a second time. THIS time I installed OUI 10.1.0.2 as a first step (which I did NOT during the first round), and then started patch install. Strangely, this time I was presented another flow of dialogs (Sorry, but I missed to make notes about the exact titles and the dialog flow), which took MUCH MUCH longer ("Analyzing Dependencies" for example, took 1.5 hours to complete), and I really do not know, how or whether I was confronted with a "Stop Running Services" issue), but after all I really managed to complete the second try successfully, and the client functions worked again (SQL*Plus reported the correct version, 9.2.0.5).
    Before I'm driven through this hell again (I have to patch several workstations running 9.2.0.1), I'd like to know,
    - Whether the issue has been solved, that the "Stop Running Services Screen" lists
    most basic services like "Event Manager". Could it have been caused by using the
    wrong OUI version or under what circumstances will it appear?
    - Secondly, what is this mysterious "svchost -k netsvcs" (netsvcs = NETSerViCeS ?)
    locking many of the DLL files in the Oracle "BIN" folder. It is definitely NOT
    one of the Oracle listener or instance services (all of which start with "Oracle").
    How can this service be disabled or be prevented from loading the Oracle DLLs?
    Sorry for the long story and partially unclear details, since I do not recall all of the long installation session. Any input is welcome.
    Werner

    Ok, "netsvcs" CAN be found in the registry, but I used FINDSTR.EXE to seach a UNICODE .REG file, and of course had no hits. Meanwhile, I learned more about SVCHOST.EXE and it's service groups, one of which is "netsvcs". In HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost, I found a value and a key named "netsvcs", the value contains this string (abbreviated):
    "6to4
    AppMgmt
    AudioSrv
    Browser
    CryptSvc
    helpsvc
    xmlprov
    wscsvc
    WmdmPmSN".
    These are the symbolic names of the services presented to me in the "Stop Running Services" screen! Now it's clear, why this screen appears, since "svchost -k netsvcs" is the process locking the Oracle DLLs.
    But the question remains: WHY does "svchost -k netsvcs" need access to Oracle DLLs? Which system or application setting controls whether svchosts tries to load the DLLs?
    Still puzzled. Werner.

  • TS1567 What if the "Stop the service" is not available?

    I really need some help. My iPod will not sync to my iTunes as the "Apple Mobile Device Service" is off or something however I found instructions to help me turn it on and back off but there is no setting for "Stop The Service". I wondered if anyone could help me! Thank you

    See the actions for AMDS included here:
    iOS: Device not recognized in iTunes for Windows

  • Stop/Start Services

    Dears:
    I have one question which is can I to stop and start service on windows 2003, such as Windows Audio service
    If yes please provide me with how...
    Thanks and best regards.

    Hello:
    what you answer is correct if i want to kill processes from task manager, but what i wanna do is to stop the service and start it again.
    When you click right click on My Computer and choose manage -> services; this what i meant by services
    Thanks and best regards

  • How to stop sql services and sql agent services on multiple servers

    Looking for a t-sql/powershell script to stop/start sql services on multiple servers. Plan is to execute script from centralized server.
    Rahul

    see
    http://www.databasejournal.com/features/mssql/article.php/3644906/Automatically-Stopping-and-Restarting-SQL-Server.htm
    http://sqlpowershell.wordpress.com/2013/04/11/powershell-check-start-and-stop-sql-services-of-a-remote-servers/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SQL Command to Start/Stop SQL services for multiple server

    From Central server I want to Start/Stop SQL services and SQL Agent service. Is there any SQL command which I can execute on query analyzer which can Start/Stop SQL services?
    Rahul

    See command line options here using net start
    http://msdn.microsoft.com/en-IN/library/hh403394.aspx
    You can invoke them using xp_cmdshell from management studio as
    ie like below for default instance
    EXEC xp_cmdshell 'net start MSSQLSERVER'
    EXEC xp_cmdshell 'net start SQLSERVERAGENT'
    etc
    and below for named instance
    EXEC xp_cmdshell 'net start MSSQLSERVER$instancename'
    EXEC xp_cmdshell 'net start SQLSERVERAGENT$instancename'
    etc
    and use net stop for stopping services
    EXEC xp_cmdshell 'net start MSSQLSERVER' EXEC xp_cmdshell 'net start SQLSERVERAGENT' etc
    EXEC xp_cmdshell 'net start MSSQLSERVER' EXEC xp_cmdshell 'net start SQLSERVERAGENT' etc
    EXEC xp_cmdshell 'net start MSSQLSERVER' EXEC xp_cmdshell 'net start SQLSERVERAGENT' etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Stop weblogic services using StartStopServices.xml parameter leaves cmd.exe

    When using the "Start > All Programs > Oracle Business Intelligence > Stop BI services" function it calls the StartStopServices.cmd file. This file then references the StartStopServices.xml file using the following statement;
    <target name="stop_all" depends="set.is.stop.all, opmn.stop, wls.mgd.stop, wls.wait.mgd.shutdown, del.generated.managed.server.credentials, wls.stop, wls.wait.admin.shutdown, del.generated.admin.server.credentials">
         </target>
         <target name="set.is.stop.all">
         <property name="is.stop.all" value="true"/>
         </target
    The problem that I'm having is that when the weblogic services are successfully stopped, 2 cmd.exe windows are left open on the server. I've created a batch file to call the StartStopServices.cmd and added parameters such as
    Sleep.exe 30
    c:\windows\system32\TASKKILL.exe /F /IM cmd.exe /T
    Theoretically this should pause for a few, and then close the open cmd windows. However whenever the StartStopServices.cmd is called it closes the original command window before any statements are executed. So essentially I don't get to the taskkill or sleep parameters. I'm assuming that I need to edit the XML file somewhere to make it so it doesn't stop_all and close, but simply stops all and allows my added entries in the cmd windows to execute so ALL cmd windows are closed.
    I'm scheduling a backup using RMAN in NOARCHIVELOG mode, and need to stop the weblogic processes in order to complete this backup function. However I need to end these cmd windows otherwise over the course of time they will be cascaded everywhere. Has anybody accomplished this?

    Hope still you need a solution for your question.
    Follow these steps to achive as expected file using StartStopServices.xml, do let me know for any questions.
    File loc: MW_HOME\instances\instance3\bifoundation\OracleBIApplication\coreapplication
    1) I've added a new target attribute( as 'veera' to existing code) at the end of the tag
    <target name="stop_all" depends="determine.language, set.is.stop.all,find.or.get.credentials, opmn.stop, wls.mgd.stop, wls.wait.mgd.shutdown, del.generated.managed.server.credentials, wls.stop, wls.wait.admin.shutdown, del.generated.admin.server.credentials, veera">
    </target>
    2) Added new code as show below
    <target name="veera" if="wls.domain.exists" depends="wls.check.exists" description="Stop WLS">
    <echo message="Srini..." />
    <exec spawn="true" executable="cmd.exe" osfamily="windows" dir="${DOMAIN_HOME}/bin">
    <arg value="/c" />
    <arg value="taskkill /f /IM cmd.exe" />
    </exec>
    </target>
    If it is helpful, please mark as correct or helpful
    Cheers,
    Veeravalli
    Edited by: svee on Jul 5, 2012 3:09 PM
    Edited by: svee on Jul 5, 2012 3:12 PM

  • Error in coherence-- stopping cluster service.

    i do have found the error in one of my coherence server log files can some one explain me what does it mean?
    Coherence Logger@9272718 3.4.2/411 ERROR 2009-06-01 16:08:31.396/1217.130 Oracle Coherence GE 3.4.2/411 <Error> (thread=Cluster, member=3): Received cluster heartbeat from the senior Member(Id=7, Timestamp=2009-04-24 12:29:25.802, Address=xx.xxx.xx.xxx:8093, MachineId=55400, Location=machine:server72,process:11324, Role=WeblogicServer) that does not contain this Member(Id=3, Timestamp=2009-06-01 15:48:09.18, Address=xx.xxx.xxx.xx:8091, MachineId=47428, Location=site:ops.company.org,machine:cohserverbox1,process:14401, Role=CoherenceServer); stopping cluster service.
    Thanks Much

    Hi,
    This error essentially means what it says: The process received a cluster heartbeat that did not include the process as a member of the cluster. The process, therefore, stops its cluster service and will attempt to join the cluster again when appropriate. There are few reasons that the senior member may not have included the process in its heartbeat. Based on the timestamps and roles, I would first want to confirm the intent to cluster these processes. If the intent is not to cluster these processes, I would adjust their configurations appropriately (eg. use a distinct port) to form separate clusters. If the intent is to cluster these processes and the error (with the timestamp spread) reproduces, I would want to examine the network topology and look for reasons the members are being dropped from the cluster.
    Regards,
    Harv

  • Stopping individual services and references in composites

    Hi All,
    We know that we can shutdown and start up composites.Is there any way by which we people can start or stop the individual services and references in the composite.Like if there is file and db adapter in a composite and i want to stop just the file adapter.Can this be achieved in 11g.
    Thanks!!!!

    Thanks Anuj,
    But that will stop the services and references for all the composites but we want for a particular composite.
    Regards

  • [svn:bz-trunk] 8731: Bug: BLZ-251 - Destination.stop() and Service.stop() don't seem to do anything

    Revision: 8731
    Author:   [email protected]
    Date:     2009-07-22 07:08:20 -0700 (Wed, 22 Jul 2009)
    Log Message:
    Bug: BLZ-251 - Destination.stop() and Service.stop() don't seem to do anything
    QA: Yes
    Doc: No
    Details: Reintroduced the change 7370 that fixed this problem but broke the LCDS Edge server; there will be another check-in in the LCDS branch to make sure this fix doesn't break the Edge server again.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-251
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/MessageBroker.java

    Hi Ingrid
    Thanks a lot for the response.
    That parameter is right now set to "0".
    But on reading the documentation for that parameter, it says you should change it only if SAP recommends you to do so.
    We checked in our other systems as well and all that is set to "0" as well.
    Will that be Ok to change the parameter to a different value?
    If yes, what is the value to be used?
    Thanks a lot

Maybe you are looking for

  • Syntax errors in update query

    Below is the query: UPDATE CFQCC SET sp_CFQCorr.RecImported = 1,  CFQCC.RecImported = 1 from [HR_DEV_DM].[CFQ_TEST].CFQ_Coord_Corrections as CFQCC INNER JOIN [HR_DEV_DM].[CFQ_TEST].sp_CFQ_Coord_Corrections as sp_CFQCorr ON CFQCC.CorrID = sp_CFQCorr.I

  • Why won't Facetime connect?

    I try to Facetime my friends and family and it will say its "connecting" but then cancel all the sudden.

  • Copy iphoto images to flash drive to pc

    I scuba dive and download my pictures to my iBook. I like to edit them on my PC. How do I copy the jpegs to my flash drive to import to pc? I notice there are data folders and thumb folders. Can someone help? Thanks.

  • Maxim number of fields in a structure

    Hi, I need to create a flat structure with 4000 fields by SE11. Is that possible? Is there any limit on how many fields can be created for a structure? Thanks, Karen

  • Help with audio please

    I am working on a DVD slideshow project and have found that creating the slideshow directly in iDVD, saving it as a disk image, and using disk utility set at 2x gives me the best visual quality of all of the different processes I tried. I'm a novice