From: Sapan Bhatia Date: Sun, 18 Aug 2013 19:16:38 +0000 (-0400) Subject: Add procprotect as a systemctl service X-Git-Tag: procprotect-0.4-1~4 X-Git-Url: http://git.onelab.eu/?p=procprotect.git;a=commitdiff_plain;h=df7d84b38a3b9b424f4eb068482404a2ef7c9741 Add procprotect as a systemctl service --- diff --git a/Makefile b/Makefile index 16b125b..9703598 100644 --- 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 index 0000000..b5e410e --- /dev/null +++ b/procprotect.service @@ -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