https://github.com/hack-fan/skadi-agent-shell
A demo of skadi agent binary running in linux shell.
https://github.com/hack-fan/skadi-agent-shell
Last synced: 4 months ago
JSON representation
A demo of skadi agent binary running in linux shell.
- Host: GitHub
- URL: https://github.com/hack-fan/skadi-agent-shell
- Owner: hack-fan
- License: mit
- Created: 2021-03-09T10:32:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-05-28T09:22:52.000Z (about 4 years ago)
- Last Synced: 2024-06-20T17:44:50.387Z (almost 2 years ago)
- Language: Go
- Size: 64.5 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Skadi Agent
Most frequently-used [skadi](https://github.com/hack-fan/skadi) agent.
Written by go. Published as binary running in your server.
Can help you run shell command.
You can also write your own agent, use our [Go SDK](https://github.com/hack-fan/skadigo).
## Install
Before we release the deb/rpm/homebrew packages,
it can only install the agent manually.
Download the release and unzip it.
Edit the config file `skadi.yml`, put your agent `TOKEN` in it.
Now you can use `./skadi` run it for testing.
Then, if everything is ok, you want to deploy it,
```shell
mv skadi /usr/bin
mkdir /etc/skadi
mv skadi.yml /etc/skadi/
```
If the user is not root, use sudo.
## Systemd
First, move the service to system path:
```shell
mv skadi.service /etc/systemd/system/
```
After saving your service file, you can start the service for the first time with the usual systemctl dance:
```shell
sudo systemctl daemon-reload
sudo systemctl enable skadi
sudo systemctl start skadi
```
Verify that it is running:
```shell
systemctl status skadi
```
When running with our official service file, its output will be redirected to journalctl:
```shell
journalctl -u skadi --no-pager | less
```