15 lines
408 B
Makefile
15 lines
408 B
Makefile
UID=1000
|
|
GID=1000
|
|
SERVICE_PATH="/etc/systemd/system"
|
|
|
|
help:
|
|
@echo "make install (with root priviliges) - to install service"
|
|
@echo "make start (with root priviliges) - to start service"
|
|
@echo "make enable (with root priviliges) - to enable service on boot"
|
|
install:
|
|
python __install__.py $(UID) $(GID) $(SERVICE_PATH)
|
|
start:
|
|
systemctl start powerplug.service
|
|
enable:
|
|
systemctl enable powerplug.service
|