From fc8b915a23682998c06450e26dd2347a049156c0 Mon Sep 17 00:00:00 2001 From: Dmitry Malinin Date: Tue, 29 Apr 2025 09:22:10 +0300 Subject: [PATCH] add systemd documentation --- doc/systemd_service.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/doc/systemd_service.md b/doc/systemd_service.md index cb72df53..91743221 100644 --- a/doc/systemd_service.md +++ b/doc/systemd_service.md @@ -2,15 +2,20 @@ ## install binary -```sudo install ./frps /usr/local/bin``` +``` +sudo install ./frps /usr/local/bin +``` ## Create systemd unit -```sudo vi /lib/systemd/syste.frps.service``` +``` +sudo vi /lib/systemd/syste.frps.service +``` +add inside - -```[Unit] +``` +[Unit] Description=FRP Server Service After=network.target @@ -21,12 +26,15 @@ Restart=on-failure RestartSec=15s [Install] -WantedBy=multi-user.target``` +WantedBy=multi-user.target +``` ## Enable service -```sudo systemctl daemon-reload +``` +sudo systemctl daemon-reload sudo systemctl enable frps.service sudo systemctl start frps.service -sudo systemctl status frps.service``` +sudo systemctl status frps.service +```