Skip to content

Conversation

@Martin-Rehr
Copy link
Contributor

This enables support for managing the rsyslog service within containers without the need for systemd:
start - start rsyslog
stop - terminate rsyslog
restart - terminate and start rsyslog
reload - reload rsyslog
status - report rsyslog status

@Martin-Rehr Martin-Rehr requested a review from jonasbardino June 16, 2025 15:22
#
# chkconfig: - 90 10
# description: rsyslogd - reliable and extended syslogd
# processname: rsyslog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to my tests I think this processname should be rsyslogd. I considered if the service / init script name should match but can see that it's called just rsyslog in systemd and in /etc/sysconfig// , so I guess that's fine.

Copy link
Contributor

@jonasbardino jonasbardino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine. The comment is a minor issue.

PID_FILE="$PID_DIR/rsyslogd.pid"

show_usage() {
echo "Usage: rsyslog--minimal {start|stop|status|restart|reload}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that the usage help should be Usage: rsyslog-minimal {.... correct?

@Martin-Rehr Martin-Rehr merged commit 46cf029 into master Jun 17, 2025
2 of 4 checks passed
@Martin-Rehr Martin-Rehr deleted the addition/rsyslog-init-helper branch June 17, 2025 09:07
@jonasbardino jonasbardino changed the title Added rsyslog serivce management without the need for systemd Added rsyslog service management without the need for systemd Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants