I'm not entirely sure what's changed.
I have a custom user service, dropped into `etc/systemd/user` called luna.service. It's a Discord bot that runs on a plex server, ubuntu 22.04
Until tonight, the service launched on every startup, and worked perfectly fine. Tonight, I restarted the service, and got the following on a status check.
If I navigate to the working directory listed in the service, and run bot.sh manually from any terminal, it works fine, but the point of the service was to make it so I didn't need to manually run it, or keep a terminal open.
Any help would be greatly appreciated.
I have a custom user service, dropped into `etc/systemd/user` called luna.service. It's a Discord bot that runs on a plex server, ubuntu 22.04
Code:
[Unit] Description=Luna, my Discord support bot. Wants=network-online.target After=network-online.target [Service] WorkingDirectory=/home/plex/bots/Luna ExecStart=/home/plex/bots/bot.sh [Install] WantedBy=default.target
Code:
luna.service - Luna, my Discord support bot. Loaded: loaded (/etc/xdg/systemd/user/luna.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2022-12-22 04:09:40 EST; 4s ago Process: 5560 ExecStart=/home/plex/bots/bot.sh (code=exited, status=127) Main PID: 5560 (code=exited, status=127) CPU: 5ms Dec 22 04:09:40 Plex systemd[1549]: Started Luna, my Discord support bot.. Dec 22 04:09:40 Plex systemd[1549]: luna.service: Main process exited, code=exited, status=127/n/a Dec 22 04:09:40 Plex systemd[1549]: luna.service: Failed with result 'exit-code'.
Any help would be greatly appreciated.
Comment