mirror of
https://github.com/daeuniverse/dae.git
synced 2025-02-06 01:02:52 +07:00
eac04e991b
* ci: add check-docs workflow * chore: ignore node_modules * chore(deps): add package-lock * style: apply formatting * style: apply formatting * fix: fix typo * fix: fix all proposed changes by markdown-lint * fix: fix trailing spaces * fix(troubleshooting.md): apply minor fi * fix(getting-started): apply minior fix * ci: dont' kick off build when changes made to check-doc.yml * ci: ONLY kick off build when target workflow file changes * trigger build * fix(build.yml): fix syntax * trigger build * fix: fix broken syntax
52 lines
1.4 KiB
Markdown
52 lines
1.4 KiB
Markdown
# Run dae as a Daemon Service
|
|
|
|
[systemd](https://wiki.debian.org/systemd) allows you to create and manage services in extremely powerful and flexible ways.
|
|
|
|
> **Note**
|
|
> If your distribution's service manager is provided by systemd.
|
|
|
|
dae can run as a daemon(systemd) service so that it can run at boot.
|
|
|
|
## Prerequisites
|
|
|
|
### Optional Geo Data Files
|
|
|
|
For more convenient traffic split, dae relies on the following data sources, [geoip.dat](https://github.com/v2ray/geoip/releases/latest) and [geosite.dat](https://github.com/v2fly/domain-list-community/releases/latest).
|
|
|
|
```shell
|
|
mkdir -p /usr/local/share/dae/
|
|
pushd /usr/local/share/dae/
|
|
curl -L -o geoip.dat https://github.com/v2ray/geoip/releases/latest/download/geoip.dat
|
|
curl -L -o geosite.dat https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat
|
|
popd
|
|
```
|
|
|
|
### Configuration File
|
|
|
|
> **Note**: The config file is recommended to save under `/etc/dae`
|
|
|
|
Download the sample config file:
|
|
|
|
```bash
|
|
mkdir -p /etc/dae
|
|
curl -L -o /etc/dae/config.dae https://github.com/daeuniverse/dae/raw/main/example.dae
|
|
```
|
|
|
|
## Setup
|
|
|
|
```bash
|
|
# download the sample systemd.service
|
|
sudo curl -L -o /etc/systemd/system/dae.service https://github.com/daeuniverse/dae/raw/main/install/dae.service
|
|
|
|
# reload and restart daemon to take effect
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable dae --now
|
|
sudo systemctl status dae
|
|
```
|
|
|
|
## Check System Logs
|
|
|
|
```bash
|
|
sudo journalctl -xefu dae
|
|
```
|