Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgolangh/eddy
eddy - a systemd file builder
https://github.com/rgolangh/eddy
systemd utility
Last synced: 29 days ago
JSON representation
eddy - a systemd file builder
- Host: GitHub
- URL: https://github.com/rgolangh/eddy
- Owner: rgolangh
- License: apache-2.0
- Created: 2018-12-09T14:52:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-23T07:57:59.000Z (over 5 years ago)
- Last Synced: 2024-11-07T10:53:15.278Z (3 months ago)
- Topics: systemd, utility
- Language: Go
- Homepage:
- Size: 2.94 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eddy - a systemd unit file builder
## Create your service file
For example make some command a (user mode) service
```bash
eddy create service \
--description "my sleeping daemon" \
--exec-start "sleep 5m" \
--install-required-by "multi-user.target" \
> ~/.config/systemd/user/mysleeping.service```
Now enable and run the service:
```bash
systemctl --user enable mysleeping.service
systemctl --user start mysleeping.service```
Get eddy's bash completion
```bash
source <(eddy completion)
```## Build and install it
```bash
make build
chmod +x eddy
# copy to your favorite PATH location
sudo cp eddy /usr/local/bin/
```## Example usage: run a postgresql 10 container as system service using podman
```bash
eddy create service \
--description "my pg10 dev service" \
--exec-start "podman run -it postgres:10.6" \
--install-required-by "multi-user.target" \
> ~/.config/systemd/user/pg10.service
systemctl --user enable pg10.service
systemctl --user start pg10.service# stop when uneeded, it just works
systemctl --user stop pg10.service```