systemd fixes
This commit is contained in:
parent
6b0c513427
commit
60bfdfec42
2 changed files with 3 additions and 4 deletions
5
Makefile
5
Makefile
|
@ -16,9 +16,7 @@ $(CSS): $(APP)/css/*
|
||||||
$(LESS) $(APP)/css/app.less > $@
|
$(LESS) $(APP)/css/app.less > $@
|
||||||
|
|
||||||
service: $(SERVICE)
|
service: $(SERVICE)
|
||||||
mkdir -p $(SYSD_USER)
|
systemctl --user enable $(PWD)/$(SERVICE)
|
||||||
ln -fs $(realpath $^) $(SYSD_USER)/$^
|
|
||||||
systemctl --user daemon-reload
|
|
||||||
|
|
||||||
$(SERVICE): misc/cyp.service.template
|
$(SERVICE): misc/cyp.service.template
|
||||||
cat $^ | envsubst > $@
|
cat $^ | envsubst > $@
|
||||||
|
@ -27,6 +25,7 @@ watch: all
|
||||||
while inotifywait -e MODIFY -r $(APP)/css $(APP)/js ; do make $^ ; done
|
while inotifywait -e MODIFY -r $(APP)/css $(APP)/js ; do make $^ ; done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
systemctl --user disable $(SERVICE)
|
||||||
rm -f $(SERVICE) $(CSS)
|
rm -f $(SERVICE) $(CSS)
|
||||||
|
|
||||||
.PHONY: all watch icons service clean
|
.PHONY: all watch icons service clean
|
||||||
|
|
|
@ -6,4 +6,4 @@ WorkingDirectory=$PWD
|
||||||
ExecStart=node .
|
ExecStart=node .
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=default.target
|
||||||
|
|
Loading…
Reference in a new issue