From df7d84b38a3b9b424f4eb068482404a2ef7c9741 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Sun, 18 Aug 2013 15:16:38 -0400 Subject: [PATCH] Add procprotect as a systemctl service --- Makefile | 3 +-- procprotect.service | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 procprotect.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 -- 2.43.0