systemd fixes

This commit is contained in:
Ondrej Zara 2019-04-25 14:43:07 +02:00
parent 6b0c513427
commit 60bfdfec42
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -6,4 +6,4 @@ WorkingDirectory=$PWD
ExecStart=node . ExecStart=node .
[Install] [Install]
WantedBy=multi-user.target WantedBy=default.target