Stopping in linux

mdtaylorlrim7 years ago

Upon execution of:

sudo /opt/traccar/bin/stopDaemon.sh

it terminates with sudo: unable to execute /opt/traccar/bin/stopDaemonNoPriv.sh: No such file or directory

Executing sudo /opt/traccar/bin/stopDaemonNoPriv.sh results in:

-bash: ./stopDaemonNoPriv.sh: /bin/bash#!/usr/bin/env: bad interpreter: No such file or directory

Before I do anything is there an easy fix for this?

Thanks
Mark

mdtaylorlrim7 years ago

And the answer is, the first line of the file is:

#!/bin/bash#!/usr/bin/env

and that should be on two separate lines like this:

#!/bin/bash
#!/usr/bin/env

If your stopDaemon.sh fails to actually stop your Traccar instance then this may be your problem. I don't know how mine got that way. I upgraded to the newest version yesterday and this was the first I had reason to stop it after the upgrade.

Mark

Anton Tananaev7 years ago