1 vote

time nohup ./script --> the time hasn't been logged

In your second attempt you measure the execution time of nohup command itself. So to get the build time you should put time after nohup: nohup time ./mach build >my_log.log 2>&1 & Also ...
Romeo Ninov's user avatar
  • 4,442
1 vote

systemd not able to run some bash scripts

First, you should set a one-shot service, because your scripts exits when it's done: [Unit] Description = Runs the mountup.sh script [Service] Type = oneshot User = adminuseraccount ExecStart = /usr/...
Halfgaar's user avatar
  • 8,074

Only top scored, non community-wiki answers of a minimum length are eligible