jslisten icon indicating copy to clipboard operation
jslisten copied to clipboard

failed to start jslisten deamon

Open vigorator opened this issue 2 years ago • 1 comments

What im I doing wrong?

sudo systemctl status jslisten.service [sudo] password for your: × jslisten.service - jslisten daemon Loaded: loaded (/etc/systemd/system/jslisten.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2022-11-22 21:30:07 GMT; 33s ago Process: 2004 ExecStart=/bin/sh -ec exec /opt/bin/jslisten (code=exited, status=217/USER) Main PID: 2004 (code=exited, status=217/USER) CPU: 3ms

Nov 22 21:30:07 your-Veriton-ES2710G systemd[1]: jslisten.service: Scheduled restart job, restart count> Nov 22 21:30:07 your-Veriton-ES2710G systemd[1]: Stopped jslisten daemon. Nov 22 21:30:07 your-Veriton-ES2710G systemd[1]: jslisten.service: Start request repeated too quickly. Nov 22 21:30:07 your-Veriton-ES2710G systemd[1]: jslisten.service: Failed with result 'exit-code'. Nov 22 21:30:07 your-Veriton-ES2710G systemd[1]: Failed to start jslisten daemon.

vigorator avatar Nov 22 '22 21:11 vigorator

I know this thing is probably dead by now but gonna leave this here in case someone needs it.

I couldn't get the service to start using sudo, so instead of moving the jslisten binary to /opt/bin/ move it to $HOME/.local/bin/ then create a jslisten.service, put it into $HOME/.config/systemd/user/, open it with nano, vim, gedit whatever, copy this and save it (remember to modify YOURUSER with your actual user folder name):

[Unit]
Description=jslisten daemon

[Service]
Type=simple
ExecStart=/home/YOURUSER/.local/bin/jslisten

[Install]
WantedBy=default.target

And then enable it using:

systemctl --user daemon-reload
systemctl --user enable --now jslisten

It should work, you can check using systemctl --user status jslisten

Morbiuzx avatar Jul 19 '24 20:07 Morbiuzx