Skip to content

Instantly share code, notes, and snippets.

@pradeepchhetri
Last active February 20, 2017 19:35
Show Gist options
  • Save pradeepchhetri/77cc8f6feabb1eb1d740117f13a562fc to your computer and use it in GitHub Desktop.
Save pradeepchhetri/77cc8f6feabb1eb1d740117f13a562fc to your computer and use it in GitHub Desktop.
Riemann installation on Debian 8 and CentOS 7
root@debian8:~# dpkg -i riemann_0.2.12_all.deb
Selecting previously unselected package riemann.
(Reading database ... 35701 files and directories currently installed.)
Preparing to unpack riemann_0.2.12_all.deb ...
Unpacking riemann (0.2.12) ...
Setting up riemann (0.2.12) ...
Processing triggers for systemd (215-17+deb8u6) ...

Last step during above installation Processing triggers for systemd runs

$ systemctl daemon-reload
root@debian8:~# systemctl status riemann
● riemann.service - LSB: Riemann server
   Loaded: loaded (/etc/init.d/riemann)
   Active: active (exited) since Mon 2017-02-20 18:46:37 UTC; 6min ago

Feb 20 18:46:37 debian8 systemd[1]: Started LSB: Riemann server.
root@debian8:~# systemctl reload riemann
root@debian8:~# journalctl
Feb 20 19:00:20 debian8 systemd[1]: Reloading LSB: Riemann server.
Feb 20 19:00:20 debian8 riemann[1793]: Reloading Riemann: riemannstart-stop-daemon: warning: failed to kill 1718: No such process
Feb 20 19:00:20 debian8 riemann[1793]: failed!
Feb 20 19:00:20 debian8 systemd[1]: Reloaded LSB: Riemann server.
[root@centos7 ~]# rpm -qa | grep systemd
systemd-219-30.el7_3.6.x86_64
systemd-sysv-219-30.el7_3.6.x86_64
systemd-libs-219-30.el7_3.6.x86_64
[root@centos7 ~]# cat /run/systemd/generator.late/riemann.service
# Automatically generated by systemd-sysv-generator

[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/rc.d/init.d/riemann
Description=LSB: Starts Riemann
After=all.target

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/rc.d/init.d/riemann start
ExecStop=/etc/rc.d/init.d/riemann stop
[root@centos7 ~]# systemctl status riemann
● riemann.service - LSB: Starts Riemann
   Loaded: loaded (/etc/rc.d/init.d/riemann; bad; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment