From 24b2afcb2f3745654bd3a7e4fa8c4a8f42a9b1b8 Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Fri, 13 Apr 2018 23:49:17 -0400 Subject: [PATCH] add rules to install systemd units --- Makefile | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 89ae22c..5cf42f7 100644 --- a/Makefile +++ b/Makefile @@ -271,19 +271,27 @@ install: install_sos grab_lib: rsync -r --delete /afs/hcoop.net/common/etc/domtool/lib/* lib/ +install_systemd_dispatcher: + install -m 644 -o root -g root scripts/domtool-server.service /etc/systemd/system/domtool-slave.service + systemctl daemon-reload + +install_systemd_worker: + install -m 644 -o root -g root scripts/domtool-slave.service /etc/systemd/system/domtool-slave.service + systemctl daemon-reload + install_serverslave: - /etc/init.d/domtool-server stop - /etc/init.d/domtool-slave stop + service domtool-server stop + service domtool-slave stop make install - /etc/init.d/domtool-server start - /etc/init.d/domtool-slave start + service domtool-server start + service domtool-slave start install_server: - /etc/init.d/domtool-server stop + service domtool-server stop make install - /etc/init.d/domtool-server start + service domtool-server start install_slave: - /etc/init.d/domtool-slave stop + service domtool-slave stop make install - /etc/init.d/domtool-slave start + service domtool-slave start -- 2.20.1