I'm trying to learn about rsyslog. On one of my linux boxes, I think that rsyslog has been configured to run through systemd based on this output:
>systemctl status rsyslog
rsyslog.service - System Logging Service
Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled)
Active: active (running) since Tue 2017-01-10 11:28:07 PST; 3 months 19 days ago
Main PID: 954 (rsyslogd)
CGroup: /system.slice/rsyslog.service
L954 /sbin/rsyslogd -n
>ps ax | grep syslog
954 ? Ssl 6:22 /sbin/rsyslogd -n
On the other linux box, though, systemv (systemctl is not present) seems unaware that rsyslogd is running:
[root@box ~]# service --status-all | grep -i syslog 2>&1
[root@box ~]# ps ax | grep -i syslog
7866 ? Sl 1:49 /sbin/rsyslogd -n -c5 -i /var/run/syslogd.pid
Why this disparity?
On the second box, is the fact that rsyslogd is running but not "found" by service evidence that it was spawned "manually" from the command-line and not configured through one of service's init.d scripts? (Sorry if my terminology is primitive).
What I actually wanted to achieve was: on the second box, I wanted to restart rsyslog, and I expected to do so by running something like service rsyslog restart. But not finding rsyslog when I ran service --status-all led me down this detour.
Box 1 configuration:
>uname -a
Linux box1 3.11.10-301.fc20.x86_64 #1 SMP Thu Dec 5 14:01:17 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 20 (Heisenbug)
Release: 20
Codename: Heisenbug
Box 2 configuration:
Linux box2 2.6.37+ #2 Tue Apr 18 03:07:09 PDT 2017 armv7l GNU/Linux
servicecommand and newer systems with thesystemctlcommand. Box1 is doing what I'd expect. I'm not sure how to try and replicate with box2 since we don't know the distro and version. :( If box2 usesrpmyou could see if you can find the package of rsyslog in use withrpm -qa | grep rsyslog. If it was built from source then it won't show up with that command and that could explain why it doesn't have a service script.rpm -qa | grep rsyslog, I gotrpmusage text, as though it doesn't recognize the argument. This may be of interest: that usage text saysBusyBox v1.18.4- I wonder if that reveals the Linux distro?BusyBoxis likely just a package. Does this work better?rpm -q rsyslogIt may return with nothing. If it does return you could tryrpm -q --info rsyslogfor more information. We could also try running rpm on a more obviously installed package to try and glean OS information. Such as:rpm -q --info bashThe "Vendor" would be a good item to check if it returns output