Rewrite API in GO #1
9
Makefile
Normal file
9
Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
build: clean
|
||||
go build -ldflags="-s -w" -o dist/ .
|
||||
|
||||
test: clean
|
||||
go run .
|
||||
|
||||
clean:
|
||||
go clean
|
||||
rm -f dist/*
|
11
init/proxmoxaas-ldap.service
Normal file
11
init/proxmoxaas-ldap.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=proxmoxaas-ldap
|
||||
After=network.target
|
||||
[Service]
|
||||
WorkingDirectory=/<path to dir>
|
||||
ExecStart=/<path to dir>/proxmoxaas-ldap
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
Type=simple
|
||||
[Install]
|
||||
WantedBy=default.target
|
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=proxmoxaas-ldap
|
||||
After=network.target
|
||||
[Service]
|
||||
WorkingDirectory=/<path to dir>/ProxmoxAAS-LDAP/
|
||||
ExecStart=/<path to dir>/ProxmoxAAS-LDAP/start.sh
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
Type=simple
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in New Issue
Block a user