add Wireguard systemd service configuration
This commit is contained in:
parent
fea4d78d1e
commit
262381c930
3 changed files with 26 additions and 0 deletions
8
Makefile
Normal file
8
Makefile
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
all: wg
|
||||
|
||||
wg: /etc/systemd/system/wg-gen.service /etc/systemd/system/wg-gen.path
|
||||
systemctl enable wg-gen.{path,service}
|
||||
systemctl start wg-gen.{path,service}
|
||||
|
||||
/etc/systemd/system/wg-gen.%: wg/wg-gen.%
|
||||
cp $< $@
|
||||
Reference in a new issue