dae/docs/getting-started/run-as-daemon.md
2023-02-25 02:55:17 +08:00

897 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 run 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