Skip to content

Fail to start binary service on ubuntu Β #22

@woyodb

Description

@woyodb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions