sfsmc/Makefile
2020-12-06 16:49:18 +01:00

30 lines
897 B
Makefile

install-debug:
@sudo systemctl --runtime link sfsmcd/sfsmc-debug@.service
.PHONY: install-debug
install-dbus:
@if [[ ! -e /usr/share/dbus-1/system.d/ ]]; then \
echo DBus security policy files are not located at the expected path;\
echo Please install the security policy for 'org.ddnss.sfs.mc' manually;\
echo " \`sudo cp sfsmcd/org.ddnss.sfs.mc.conf <your path e.g. /usr/share/dbus-1/system.d/>\`";\
exit 1;\
elif [[ ! -e /usr/share/dbus-1/system.d/org.ddnss.sfs.mc.conf ]]; then \
sudo cp sfsmcd/org.ddnss.sfs.mc.conf /usr/share/dbus-1/system.d/;\
fi
.PHONY: install-dbus
journalctl:
@journalctl -efSnow -usfsmc-debug@$$(cd ..; pwd) -ocat
.PHONY: journalctl
start:
@sudo systemctl start sfsmc-debug@$$(cd ..; pwd)
.PHONY: start
stop:
@sudo systemctl stop sfsmc-debug@$$(cd ..; pwd)
.PHONY: stop
restart:
@sudo systemctl restart sfsmc-debug@$$(cd ..; pwd)
.PHONY: restart