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 > $@
|
||||
|
||||
service: $(SERVICE)
|
||||
mkdir -p $(SYSD_USER)
|
||||
ln -fs $(realpath $^) $(SYSD_USER)/$^
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable $(PWD)/$(SERVICE)
|
||||
|
||||
$(SERVICE): misc/cyp.service.template
|
||||
cat $^ | envsubst > $@
|
||||
|
@ -27,6 +25,7 @@ watch: all
|
|||
while inotifywait -e MODIFY -r $(APP)/css $(APP)/js ; do make $^ ; done
|
||||
|
||||
clean:
|
||||
systemctl --user disable $(SERVICE)
|
||||
rm -f $(SERVICE) $(CSS)
|
||||
|
||||
.PHONY: all watch icons service clean
|
||||
|
|
|
@ -6,4 +6,4 @@ WorkingDirectory=$PWD
|
|||
ExecStart=node .
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=default.target
|
||||
|
|
Loading…
Reference in a new issue