Systemd unit not starting

Hi there,

So, I am trying to set a systemd unit in order to make megaCMD (from Mega cloud) starts automatically at boot, but I am facing some problems.

Below is the unit I created (mega-cmd.service):

Description=Mega-CMD systemd service


But, running systemctl status mega-cmd returns some errors:

Loaded: loaded (/etc/systemd/system/mega-cmd.service; enabled; preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2022-12-16 17:56:59 -03; 76ms ago
    Process: 627154 ExecStart=/usr/bin/mega-cmd-server (code=exited, status=217/USER)
   Main PID: 627154 (code=exited, status=217/USER)
        CPU: 2ms

And so the unit is never started. Anyone has some idea about how to solve this issue please?

Thanks in advance.

Error 217 indicates that the user you defined for running the program does not exist.

Do you have a user pi on your system?

Oh, my bad! :slight_smile:

This unit was provided by the Mega’s technical support, and I totally forgot this!

Thanks for your help, much appreciated! Now it’s running fine, since I put my user there.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.