From 09098534af17619605e27629d39b764afbc80934 Mon Sep 17 00:00:00 2001 From: Xenhat Hex Date: Sat, 25 Apr 2020 01:47:14 -0400 Subject: [PATCH] sys-devel/icecream: add systemd unit files Package-Manager: Portage-2.3.89, Repoman-2.3.20 --- .../icecream/files/icecream-scheduler.service | 16 ++++++++++++++++ sys-devel/icecream/files/icecream.service | 16 ++++++++++++++++ sys-devel/icecream/icecream-1.3.1.ebuild | 4 +++- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 sys-devel/icecream/files/icecream-scheduler.service create mode 100644 sys-devel/icecream/files/icecream.service diff --git a/sys-devel/icecream/files/icecream-scheduler.service b/sys-devel/icecream/files/icecream-scheduler.service new file mode 100644 index 0000000..bcdb127 --- /dev/null +++ b/sys-devel/icecream/files/icecream-scheduler.service @@ -0,0 +1,16 @@ + +[Unit] +Description=Icecream Distributed Compiler Scheduler +After=network.target nss-lookup.target + +[Service] +Type=simple +# Set SHELL so that icecc-create-env does not have to attempt to detect its +# value by reading /etc/passwd. The SELinux policy does not need to allow it. +Environment=SHELL=/bin/bash +SyslogIdentifier=icecc-scheduler +ExecStart=/usr/sbin/icecc-scheduler -u icecream -v +Nice=5 + +[Install] +WantedBy=multi-user.target diff --git a/sys-devel/icecream/files/icecream.service b/sys-devel/icecream/files/icecream.service new file mode 100644 index 0000000..2523546 --- /dev/null +++ b/sys-devel/icecream/files/icecream.service @@ -0,0 +1,16 @@ + +[Unit] +Description=Icecream Distributed Compiler +After=network.target nss-lookup.target + +[Service] +Type=simple +# Set SHELL so that icecc-create-env does not have to attempt to detect its +# value by reading /etc/passwd. The SELinux policy does not need to allow it. +Environment=SHELL=/bin/bash +SyslogIdentifier=iceccd +ExecStart=/usr/sbin/iceccd -u icecream -b /var/cache/icecream -v +Nice=5 + +[Install] +WantedBy=multi-user.target diff --git a/sys-devel/icecream/icecream-1.3.1.ebuild b/sys-devel/icecream/icecream-1.3.1.ebuild index 9ee8e0d..3b14c36 100644 --- a/sys-devel/icecream/icecream-1.3.1.ebuild +++ b/sys-devel/icecream/icecream-1.3.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit user +inherit user systemd MY_P="${P/icecream/icecc}" @@ -47,6 +47,8 @@ src_install() { newconfd suse/sysconfig.icecream icecream newinitd "${FILESDIR}"/icecream-r2 icecream + systemd_newunit "${FILESDIR}/icecream-scheduler.service" 'icecream-scheduler.service' + systemd_newunit "${FILESDIR}/icecream.service" 'icecream.service' insinto /etc/logrotate.d newins suse/logrotate icecream