public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/icecream] epel9: log to journal/syslog, not the custom log files
@ 2026-07-30 15:34 Michal Schmidt
0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-07-30 15:34 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/icecream
Branch : epel9
Commit : 23d2016bc1c6ae158977670b2ded3fc626375006
Author : Michal Schmidt <mschmidt@redhat.com>
Date : 2013-09-02T10:53:08+02:00
Stats : +8/-11 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/icecream/c/23d2016bc1c6ae158977670b2ded3fc626375006?branch=epel9
Log:
log to journal/syslog, not the custom log files
... which we did not even ship a logrotate config for.
---
diff --git a/icecc-scheduler-wrapper b/icecc-scheduler-wrapper
index 2ac7370..09e92f5 100644
--- a/icecc-scheduler-wrapper
+++ b/icecc-scheduler-wrapper
@@ -1,7 +1,5 @@
#!/bin/sh
-logfile="$1"
-
config=/etc/sysconfig/icecream
[ -e $config ] && . $config
@@ -10,9 +8,4 @@ if [ -n "$ICECREAM_NETNAME" ] ; then
netname="-n $ICECREAM_NETNAME"
fi
-touch "$logfile"
-chown icecream:icecream "$logfile"
-chmod 0640 "$logfile"
-[ -x /sbin/restorecon ] && /sbin/restorecon "$logfile"
-
-exec /sbin/runuser -s /bin/sh icecream --session-command="/usr/sbin/icecc-scheduler -d -l \"$logfile\" $netname"
+exec /usr/sbin/icecc-scheduler $netname
diff --git a/icecc-scheduler.service b/icecc-scheduler.service
index 6f85c92..702f80e 100644
--- a/icecc-scheduler.service
+++ b/icecc-scheduler.service
@@ -2,8 +2,11 @@
Description=Icecream distributed compiler scheduler
[Service]
-Type=forking
-ExecStart=/usr/libexec/icecc/icecc-scheduler-wrapper /var/log/icecc/scheduler.log
+Type=simple
+User=icecream
+Group=icecream
+SyslogIdentifier=icecc-scheduler
+ExecStart=/usr/libexec/icecc/icecc-scheduler-wrapper
[Install]
WantedBy=multi-user.target
diff --git a/iceccd.service b/iceccd.service
index 2e8743f..bf5730b 100644
--- a/iceccd.service
+++ b/iceccd.service
@@ -7,7 +7,8 @@ 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
-ExecStart=/usr/libexec/icecc/iceccd-wrapper -u icecream -b /var/cache/icecream -l /var/log/icecc/iceccd.log
+SyslogIdentifier=iceccd
+ExecStart=/usr/libexec/icecc/iceccd-wrapper -u icecream -b /var/cache/icecream -v
Nice=5
[Install]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-30 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-30 15:34 [rpms/icecream] epel9: log to journal/syslog, not the custom log files Michal Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox