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

View file

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