sys-devel/icecream: add systemd unit files

Package-Manager: Portage-2.3.89, Repoman-2.3.20
This commit is contained in:
Xenhat Hex 2020-04-25 01:47:14 -04:00
parent 23fa114c18
commit 09098534af
No known key found for this signature in database
GPG Key ID: 03FE57ED1424AB4D
3 changed files with 35 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -3,7 +3,7 @@
EAPI=7 EAPI=7
inherit user inherit user systemd
MY_P="${P/icecream/icecc}" MY_P="${P/icecream/icecc}"
@ -47,6 +47,8 @@ src_install() {
newconfd suse/sysconfig.icecream icecream newconfd suse/sysconfig.icecream icecream
newinitd "${FILESDIR}"/icecream-r2 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 insinto /etc/logrotate.d
newins suse/logrotate icecream newins suse/logrotate icecream