Add procprotect as a systemctl service
authorSapan Bhatia <gwsapan@gmail.com>
Sun, 18 Aug 2013 19:16:38 +0000 (15:16 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Sun, 18 Aug 2013 19:16:38 +0000 (15:16 -0400)
Makefile
procprotect.service [new file with mode: 0644]

index 16b125b..9703598 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,5 +18,4 @@ clean:
 
 install:
        install -D -m 755 procprotect.ko /lib/modules/$(KVER)/net/procprotect/procprotect.ko
-       mkdir -p /etc/modules-load.d
-       install -m 644 procprotect.conf /etc/modules-load.d/procprotect.conf
+       install -m 644 procprotect.service /usr/lib/systemd/system/procprotect.service
diff --git a/procprotect.service b/procprotect.service
new file mode 100644 (file)
index 0000000..b5e410e
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=procprotect module
+After=syslog.target network.target
+
+[Service]
+Type=forking
+ExecStart=/sbin/modprobe procprotect
+ControlGroup=cpu:/
+
+[Install]
+WantedBy=multi-user.target