Migrate to Python daemon
This commit is contained in:
parent
49ef349d48
commit
d81f3dbffe
42 changed files with 660 additions and 1816 deletions
21
Makefile
21
Makefile
|
|
@ -1,16 +1,15 @@
|
|||
BIN_DIR := .
|
||||
LELD := $(BIN_DIR)/leld
|
||||
LELCTL := $(BIN_DIR)/lelctl
|
||||
CONFIG := $(HOME)/.config/lel/config.json
|
||||
|
||||
.PHONY: build run clean
|
||||
|
||||
build:
|
||||
go build -o $(LELD) ./cmd/leld
|
||||
go build -o $(LELCTL) ./cmd/lelctl
|
||||
.PHONY: run run-py install
|
||||
|
||||
run:
|
||||
$(LELD) --config $(CONFIG)
|
||||
python3 src/leld.py --config $(CONFIG)
|
||||
|
||||
clean:
|
||||
rm -f $(LELD) $(LELCTL)
|
||||
run-py: run
|
||||
|
||||
install:
|
||||
mkdir -p $(HOME)/.local/bin
|
||||
cp src/leld.py $(HOME)/.local/bin/leld.py
|
||||
cp systemd/lel.service $(HOME)/.config/systemd/user/lel.service
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable --now lel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue