cgroup/Makefile
Przemysław Grondek 2112d7e620 Init conifg
2020-02-25 11:54:05 +01:00

18 lines
596 B
Makefile

CONFIG=cgconfig.conf cgred.conf cgrules.conf
CONFIG_DIR=/etc
SERVICES=cgconfigparser.service cgrulesgend.service
SYSTEMD_DIR=/lib/systemd/system
install:
cp $(CONFIG) $(CONFIG_DIR)
cp $(SERVICES) $(SYSTEMD_DIR)
$(foreach service,$(SERVICES), systemctl enable $(service);)
$(foreach service,$(SERVICES), systemctl start $(service);)
clean:
$(foreach config,$(CONFIG), rm -i $(CONFIG_DIR)/$(config);)
$(foreach service,$(SERVICES), systemctl stop $(service);)
$(foreach service,$(SERVICES), systemctl disable $(service);)
$(foreach service,$(SERVICES), rm -i $(SYSTEMD_DIR)/$(service);)