add Makefile, move systemd service file to init folder

This commit is contained in:
2024-06-20 03:03:11 +00:00
parent df2d5f0bf7
commit e8dec2fbef
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
build: clean
go build -ldflags="-s -w" -o dist/ .
test: clean
go run .
clean:
go clean
rm -f dist/*
@@ -2,8 +2,8 @@
Description=proxmoxaas-ldap
After=network.target
[Service]
WorkingDirectory=/<path to dir>/ProxmoxAAS-LDAP/
ExecStart=/<path to dir>/ProxmoxAAS-LDAP/start.sh
WorkingDirectory=/<path to dir>
ExecStart=/<path to dir>/proxmoxaas-ldap
Restart=always
RestartSec=10
Type=simple