<html><br />Hi list, <br />I searched the _whole_ www but did not find the answer.<br /><br /><br /><br />I use bestcrypt <<a href="https://www.jetico.com/data-encryption/encrypt-files-bestcrypt-container-encryption">Encrypt Files with BestCrypt Container Encryption | Jetico</a>> to mount the home directory.<br /><br /><br />This is my service file.<br /><br />--<br />[Unit]<br />Description=Mount Bestcrypt containers<br />Wants=local-fs.target<br />After=local-fs.target<br /><br />[Service]<br />Type=oneshot<br />RemainAfterExit=true<br />ExecStart=/usr/local/sbin/bcmount<br />ExecStop=/usr/local/sbin/bceject<br /><br />[Install]<br />WantedBy=multi-user.target<br />--<br /><br />This is the file to be run<br /><br />--<br />#!/bin/sh<br />/usr/bin/bctool mount /mnt/sdr2/2.jbc -t ext4 /mnt/el1-2_<br /><br />exit 0<br />--<br /><br />If I run "bcmount" by hand (without systemd) it asks for a password, and this is very correct.<br /><br />If I want to start with "systemctl start bcmount" nothing happens, no error, no execution of the program "bcmount", but as you can see:<br /><br /><br /># systemctl status bestcrypt-fs<br />● bestcrypt-fs.service - Mount Bestcrypt containers<br /> Loaded: loaded (/etc/systemd/system/bestcrypt-fs.service; enabled; vendor preset: disabled)<br /> Active: active (exited) (thawing) since Mon 2023-08-07 11:17:18 EEST; 20min ago<br /> Process: 2645396 ExecStart=/usr/local/sbin/bcmount (code=exited, status=0/SUCCESS)<br /> Main PID: 2645396 (code=exited, status=0/SUCCESS)<br /><br /><br />How come that the via "ExecStart=" given bash script does not get run? This script does not contain any errors.<br />The service file does not have any syntax errors either. Permissions to read/execute are verified!<br /><br />Do you have a clue? I even changed "oneshot" into "simple", striked "RemainAfterExit", etc.<br /><br />Is there any way I can see the whole process verbosely?<br /><br /><br />Martin.<br /><br /><br />-- <br /><span style="font-family:Lucida Sans Unicode,Lucida Grande,sans-serif;"><strong>Martin Stenzel (马丁-斯坦泽尔)<br />An der Drehscheibe 9<br />50733 Köln<br />Deutschland</strong><br /><br /><br />-----BEGIN PGP PUBLIC KEY BLOCK-----<br /><br />mDMEZHjlmRYJKwYBBAHaRw8BAQdAEr/C08aStyKx+vztCxz4Nn8BHO2Lx0OXllsz<br />BP+ZEZm0Pk1hcnRpbiBTdGVuemVsIChDb2xvZ25lLCBHZXJtYW55KSA8bS5zdGVu<br />emVsQG1haWwueHktc3BhY2UuZGU+iJYEExYIAD4WIQQrzOhRsO0/8FaU5ykQoKMS<br />ax9FuAUCZHjlmQIbAwUJC0c1AAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRAQ<br />oKMSax9FuNswAPsEsMp2JdzzDkAw6VzByp2XUY921lFt9rVoaVcZmjV5awD/W57o<br />a6c2qbD2p+AYkgKuffa2uZkX3mayvIxsfFnsWAW4OARkeOWZEgorBgEEAZdVAQUB<br />AQdAFlq+E22Hk7Gj44CCN4LDr97Y41lUGzvqmpCDpSq0CEwDAQgHiH4EGBYIACYW<br />IQQrzOhRsO0/8FaU5ykQoKMSax9FuAUCZHjlmQIbDAUJC0c1AAAKCRAQoKMSax9F<br />uGHVAQDjAisQxn5ADKIRPsMfFpE847jFJGA2lRafU7C30gLzhwD8DcegQwz7/RLc<br />yozIfQ6yIkz2cR3+NClIepnWV/ATQQw=<br />=qQIl<br />-----END PGP PUBLIC KEY BLOCK-----<br /><br />Fingerprint: 2BCC E851 B0ED 3FF0 5694 E729 10A0 A312 6B1F 45B8<br /><br /><br /><strong><span style="color:#000000;background-color:#ffffff;">This message was checked by ESET Endpoint Antivirus for Linux.</span><br /><br /><a href="https://www.eset.com">https://www.eset.com</a></strong></span></html>