-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmdaemon.spec
44 lines (36 loc) · 1.35 KB
/
pmdaemon.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Name: pmdaemon
Version: 1.1
Release: 4%{?dist}
Summary: Process Monitoring Daemon package
License: GPLv3+
URL: https://github.com/gerard-kanduth/pmdaemon
BuildRoot: /srv/pmdaemon
%description
This package will install the Process Monitoring Daemon service "pmdaemon.service"
which can be used to monitor and limit processes via rules and the help of Cgroup v2.
%prep
# nothing to do here
%build
# the build will be controlled via Makefile
%install
cd %{buildroot}
cd ../../
mkdir -p %{buildroot}/usr/sbin
mkdir -p %{buildroot}/etc/pmdaemon
mkdir -p %{buildroot}/etc/pmdaemon/rules.d
mkdir -p %{buildroot}/usr/lib/systemd/system
install -m 755 build/usr/sbin/pmdaemon %{buildroot}/usr/sbin/pmdaemon
install -m 644 systemd/pmdaemon.service %{buildroot}/usr/lib/systemd/system/pmdaemon.service
install -m 644 settings.conf %{buildroot}/etc/pmdaemon/settings.conf
install -m 644 rules.d/stress-rule.rule %{buildroot}/etc/pmdaemon/rules.d/stress-rule.rule
systemctl daemon-reload
%files
/usr/sbin/pmdaemon
/usr/lib/systemd/system/pmdaemon.service
/etc/pmdaemon
%changelog
* Fri May 24 2024 Gerard Raffael Kanduth <gerardraffael.kanduth@edu.fh-kaernten.ac.at> - 1.1
- Version updated to 1.1
- Renamed example-rule to stress-rule.rule
* Tue Jan 03 2023 Gerard Raffael Kanduth <gerardraffael.kanduth@edu.fh-kaernten.ac.at> - 1.0
- Initial version of the package