mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-07 13:44:17 +08:00
fpm config file; netclient.service file
This commit is contained in:
parent
84b7eb7453
commit
78a3a2b4cb
3 changed files with 27 additions and 0 deletions
11
.fpm
Normal file
11
.fpm
Normal file
|
@ -0,0 +1,11 @@
|
|||
-s dir
|
||||
-t deb
|
||||
--name netclient
|
||||
--license sspl
|
||||
--depends wireguard-tools
|
||||
--description "Netmaker's netclient agent and CLI"
|
||||
--url "https//:github.com/gravitl/netmaker"
|
||||
--maintainer "info@gravitl.com"
|
||||
--vendor Gravitl
|
||||
build/netclient=/sbin/netclient build/netclient.service=/lib/systemd/system/netclient.service
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@ netmaker-amd64
|
|||
netclient/netclient
|
||||
netclient/build
|
||||
netclient/build/
|
||||
!netclient/build/netclient.service
|
||||
netclient/files/netclient
|
||||
netclient/netclient-amd64
|
||||
netclient/netclient-arm
|
||||
|
|
15
netclient/build/netclient.service
Normal file
15
netclient/build/netclient.service
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Netclient Daemon
|
||||
Documentation=https://docs.netmaker.org https://k8s.netmaker.org
|
||||
After=network-online.target
|
||||
Wants=network-online.target systemd-networkd-wait-online.service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Type=simple
|
||||
ExecStart=/sbin/netclient daemon
|
||||
Restart=on-failure
|
||||
RestartSec=15s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Reference in a new issue