add rules to install systemd units
[hcoop/domtool2.git] / Makefile
index 89ae22c..5cf42f7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -271,19 +271,27 @@ install: install_sos
 grab_lib:
        rsync -r --delete /afs/hcoop.net/common/etc/domtool/lib/* lib/
 
 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:
 install_serverslave:
-       /etc/init.d/domtool-server stop
-       /etc/init.d/domtool-slave stop
+       service domtool-server stop
+       service domtool-slave stop
        make install
        make install
-       /etc/init.d/domtool-server start
-       /etc/init.d/domtool-slave start
+       service domtool-server start
+       service domtool-slave start
 
 install_server:
 
 install_server:
-       /etc/init.d/domtool-server stop
+       service domtool-server stop
        make install
        make install
-       /etc/init.d/domtool-server start
+       service domtool-server start
 
 install_slave:
 
 install_slave:
-       /etc/init.d/domtool-slave stop
+       service domtool-slave stop
        make install
        make install
-       /etc/init.d/domtool-slave start
+       service domtool-slave start