add systemd services, hosts.allow, hosts.deny

This commit is contained in:
2018-11-20 15:56:21 +08:00
parent 292a6e881d
commit 765fd0392a
5 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
[Unit]
Description=Frp Client
After=network.target
ConditionPathExists=/usr/local/frp/frpc
[Service]
#EnvironmentFile=-/etc/default/ssh
#ExecStartPre=/usr/sbin/sshd -t
ExecStart=/usr/local/frp/frpc -c /usr/local/frp/frpc.ini
#ExecStop=/usr/local/ss/stop.sh
#ExecReload=/usr/sbin/sshd -t
#ExecReload=/bin/kill -HUP $MAINPID
#KillMode=process
Restart=on-failure
#RestartPreventExitStatus=255
#Type=notify
[Install]
WantedBy=multi-user.target
Alias=frpc.service