fpm config file; netclient.service file

This commit is contained in:
Matthew R. Kasun 2022-03-08 16:29:20 -05:00
parent 84b7eb7453
commit 78a3a2b4cb
3 changed files with 27 additions and 0 deletions

11
.fpm Normal file
View 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
View file

@ -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

View 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