This commit has been accessed 2,397 times via Git panel.
commit 063b06e0087d2ce8d919fd3aa863c835220c1343
tree 1141d13360fba7b0c8eddd64164183e0f2d335e7
parent 9dd34665a1d0a0c7cf7411682020668af6d1b83a
author Engels Antonio <engels@kalasag.org> 1465317626 +0800
committer Engels Antonio <engels@kalasag.org> 1465317626 +0800
Add systemd unit file
diff --git a/Makefile b/Makefile
index 3896dd9..b1b55e2 100644
--- a/Makefile
+++ b/Makefile
@@ -76,6 +76,7 @@ install:
cp ./kalasag.conf $(INSTALLDIR)$(CHILDDIR)
cp ./kalasag.ignore $(INSTALLDIR)$(CHILDDIR)
cp ./kalasag $(INSTALLDIR)$(CHILDDIR)
+ if [ -d /usr/lib/systemd/system ]; then cp ./kalasag.service /usr/lib/systemd/system/; fi
@echo "Setting permissions"
chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.ignore
chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.conf
tree 1141d13360fba7b0c8eddd64164183e0f2d335e7
parent 9dd34665a1d0a0c7cf7411682020668af6d1b83a
author Engels Antonio <engels@kalasag.org> 1465317626 +0800
committer Engels Antonio <engels@kalasag.org> 1465317626 +0800
Add systemd unit file
diff --git a/Makefile b/Makefile
index 3896dd9..b1b55e2 100644
--- a/Makefile
+++ b/Makefile
@@ -76,6 +76,7 @@ install:
cp ./kalasag.conf $(INSTALLDIR)$(CHILDDIR)
cp ./kalasag.ignore $(INSTALLDIR)$(CHILDDIR)
cp ./kalasag $(INSTALLDIR)$(CHILDDIR)
+ if [ -d /usr/lib/systemd/system ]; then cp ./kalasag.service /usr/lib/systemd/system/; fi
@echo "Setting permissions"
chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.ignore
chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.conf