diff options
author | nachoparker <nacho@ownyourbits.com> | 2021-01-20 16:47:03 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2021-01-20 16:47:08 +0300 |
commit | 117b8ea9d92f4c7c962b57cb380730bc81557e3b (patch) | |
tree | bfd21d85c2b47b88da00f2d6656a10f9fc1bcf80 | |
parent | b978184ce6a5e7f7171bb73cdce8009367cfdaa9 (diff) |
nc-automount: udiskie verbose outputv1.34.8
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r-- | bin/ncp/SYSTEM/nc-automount.sh | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/bin/ncp/SYSTEM/nc-automount.sh b/bin/ncp/SYSTEM/nc-automount.sh index b85e8776..ca631527 100644 --- a/bin/ncp/SYSTEM/nc-automount.sh +++ b/bin/ncp/SYSTEM/nc-automount.sh @@ -26,7 +26,7 @@ Before=mysqld.service dphys-swapfile.service fail2ban.service smbd.service nfs-s [Service] Restart=always ExecStartPre=/bin/bash -c "rmdir /media/* || true" -ExecStart=/usr/bin/udiskie -NTF +ExecStart=/usr/bin/udiskie -NTFv [Install] WantedBy=multi-user.target @@ -85,19 +85,15 @@ EOF configure() { [[ $ACTIVE != "yes" ]] && { - systemctl stop nc-automount - systemctl stop nc-automount-links - systemctl disable nc-automount - systemctl disable nc-automount-links + systemctl disable --now nc-automount + systemctl disable --now nc-automount-links rm -rf /etc/systemd/system/{mariadb,nfs-server,dphys-swapfile,fail2ban}.service.d systemctl daemon-reload echo "automount disabled" return 0 } - systemctl enable nc-automount - systemctl enable nc-automount-links - systemctl start nc-automount - systemctl start nc-automount-links + systemctl enable --now nc-automount + systemctl enable --now nc-automount-links # create delays in some units mkdir -p /etc/systemd/system/mariadb.service.d |