dae/docs/getting-started/run-as-daemon.md
2023-02-21 00:41:30 +08:00

904 B

Run Dae as a Daemon Service

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 be running as a daemon(systemd) service so that it can run at boot.

Prerequisites

Note

The config file is recommended to save under /etc/dae

Download the sample config file

mkdir -p /etc/dae
curl -L -o /etc/dae/config.dae https://github.com/v2rayA/dae/raw/main/example.dae

Setup

# download the sample systemd.service
sudo curl -L -o /etc/systemd/system/dae.service https://github.com/v2rayA/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

sudo journalctl -xefu dae