-
-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Description
Describe the bug
Commandline invocation of /usr/bin/toshi --config /etc/toshi/config.toml
which works from the shell fails in systemd service:
[Unit]
Description=Toshi Search
After=default.target
[Service]
User=toshi
Group=toshi
ExecStart=/usr/bin/toshi --config /etc/toshi/config.toml
Type=simple
Environment=RUST_BACKTRACE=1
[Install]
WantedBy=multi-user.target
Jan 19 23:26:30 unknown systemd[1]: Started Toshi Search.
Jan 19 23:26:30 unknown toshi[197006]: Error: IOError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Jan 19 23:26:30 unknown systemd[1]: toshi.service: Main process exited, code=exited, status=1/FAILURE
Jan 19 23:26:30 unknown systemd[1]: toshi.service: Failed with result 'exit-code'.
To Reproduce
Steps to reproduce the behavior:
- Build release binary
- Write config and place in path shown above
- Create the data path and set appropriate ownership
- Create systemd service as shown
- Run CLI invocation, then run service
- Observe failure and logs
Expected behavior
Same behavior in systemd service context as in shell
Desktop (please complete the following information):
- OS: Arch
- Rust Version: Stable (Arch Linux upstream)
- Version: current master
Metadata
Metadata
Assignees
Labels
No labels