Score:0

Ubuntu is not shutting down

US flag
user1680072

I added a WebDAV folder to /etc/fstab

https://my.owncloud.de/remote.php/dav/files/matt/ /home/matt/Owncloud davfs user,rw,auto 0 0

but when it's mounted then Ubuntu doesn't shut down. See more details in the attached image.

Shutdown

cn flag
Unmounting it before the shutdown does not work?
cn flag
so you add it to the system so it is executed before a shutdown. See for insrance https://askubuntu.com/questions/779154/how-do-i-get-my-script-to-run-before-any-shutdown-sequence-like-unmounting-my-ex
cn flag
could you make what you did an answer and accept it? :)
Score:1
US flag
user1680072
  1. Create a custom script for unmount

    nano /home/matt/Scripts/umountCloud.sh

  2. Add unmount command

    umount /home/matt/Owncloud

  3. Make it executable

    chmod +x /home/matt/Scripts/umountCloud.sh

  4. Create a systems script

    sudo nano /etc/systemd/system/preShutdown.service

  5. Add following lines to execute the custom script on shutdown

    [Unit] Description=Shutdown Process

    [Service] Type=oneshot ExecStart=/home/matthias/Scripts/umountCloud.sh

    [Install] WantedBy=multi-user.target

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.