Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to start binary service on ubuntu #22

Open
woyodb opened this issue Aug 4, 2024 · 1 comment
Open

Fail to start binary service on ubuntu #22

woyodb opened this issue Aug 4, 2024 · 1 comment

Comments

@woyodb
Copy link

woyodb commented Aug 4, 2024

Hi there,

I try to create a binary service, but encounter some errors when start it. It should be very simple, maybe i miss something? pls help, thanks!

Operating system Info:

uname -a
Linux xxx 5.15.0-102-generic #112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Used Release File:
https://github.com/servicer-labs/servicer/releases/download/v0.1.13/servicer-x86_64-unknown-linux-gnu

Fail to start service:

sudo svc start blog
service started: /org/freedesktop/systemd1/job/262712
+-----+------+--------+----------------+-------+--------+
| pid | name | active | enable on boot | cpu % | memory |
+-----+------+--------+----------------+-------+--------+
| 0   | blog | failed | false          | 0     | 0      |
+-----+------+--------+----------------+-------+--------+

Related logs:

svc logs blog
...
Aug 04 20:55:09 mia systemd[1]: Started Servicer:blog.
Aug 04 20:55:09 mia systemd[3783910]: blog.ser.service: Failed to locate executable blog: No such file or directory
Aug 04 20:55:09 mia systemd[3783910]: blog.ser.service: Failed at step EXEC spawning blog: No such file or directory
Aug 04 20:55:09 mia systemd[1]: blog.ser.service: Main process exited, code=exited, status=203/EXEC
Aug 04 20:55:09 mia systemd[1]: blog.ser.service: Failed with result 'exit-code'.

My executable file location: ~/apps/blog/blog

svc cat blog
Reading /etc/systemd/system/blog.ser.service:
# Generated with Servicer
[Unit]
Description=Servicer:blog
After=network.target

[Service]
Type=simple
User=woyo

WorkingDirectory=/home/woyo/apps/blog
ExecStart=blog



[Install]
WantedBy=multi-user.target
@NickRance
Copy link

Getting the same issue on Ubuntu 24.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants