diff --git a/conf/systemd/frpc.service b/conf/systemd/frpc.service new file mode 100644 index 00000000..dd88ce01 --- /dev/null +++ b/conf/systemd/frpc.service @@ -0,0 +1,14 @@ +[Unit] +Description=Frp Client Service +After=network.target + +[Service] +Type=simple +User=nobody +Restart=on-failure +RestartSec=5s +ExecStart=/usr/bin/frpc -c /etc/frp/frpc.ini +ExecReload=/usr/bin/frpc reload -c /etc/frp/frpc.ini + +[Install] +WantedBy=multi-user.target diff --git a/conf/systemd/frpc@.service b/conf/systemd/frpc@.service new file mode 100644 index 00000000..46251ed8 --- /dev/null +++ b/conf/systemd/frpc@.service @@ -0,0 +1,14 @@ +[Unit] +Description=Frp Client Service +After=network.target + +[Service] +Type=idle +User=nobody +Restart=on-failure +RestartSec=5s +ExecStart=/usr/bin/frpc -c /etc/frp/%i.ini +ExecReload=/usr/bin/frpc reload -c /etc/frp/%i.ini + +[Install] +WantedBy=multi-user.target diff --git a/conf/systemd/frps.service b/conf/systemd/frps.service new file mode 100644 index 00000000..1daa2674 --- /dev/null +++ b/conf/systemd/frps.service @@ -0,0 +1,13 @@ +[Unit] +Description=Frp Server Service +After=network.target + +[Service] +Type=simple +User=nobody +Restart=on-failure +RestartSec=5s +ExecStart=/usr/bin/frps -c /etc/frp/frps.ini + +[Install] +WantedBy=multi-user.target diff --git a/conf/systemd/frps@.service b/conf/systemd/frps@.service new file mode 100644 index 00000000..8b625ca7 --- /dev/null +++ b/conf/systemd/frps@.service @@ -0,0 +1,13 @@ +[Unit] +Description=Frp Server Service +After=network.target + +[Service] +Type=simple +User=nobody +Restart=on-failure +RestartSec=5s +ExecStart=/usr/bin/frps -c /etc/frp/%i.ini + +[Install] +WantedBy=multi-user.target