sys-devel/icecream: add systemd unit files
Package-Manager: Portage-2.3.89, Repoman-2.3.20
This commit is contained in:
parent
23fa114c18
commit
09098534af
16
sys-devel/icecream/files/icecream-scheduler.service
Normal file
16
sys-devel/icecream/files/icecream-scheduler.service
Normal 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
|
16
sys-devel/icecream/files/icecream.service
Normal file
16
sys-devel/icecream/files/icecream.service
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user