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 -l | grep systemd
ii  libsystemd0:amd64              215-17+deb8u6               amd64        systemd utility library
ii  systemd                        215-17+deb8u6               amd64        system and service manager
ii  systemd-sysv                   215-17+deb8u6               amd64        system and service manager - SysV links
root@debian8:~# cat /run/systemd/generator.late/riemann.service
# Automatically generated by systemd-sysv-generator

[Unit]
SourcePath=/etc/init.d/riemann
Description=LSB: Riemann server
Before=runlevel2.target runlevel3.target runlevel4.target runlevel5.target shutdown.target
After=remote-fs.target systemd-journald-dev-log.socket
Conflicts=shutdown.target

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
SysVStartPriority=2
ExecStart=/etc/init.d/riemann start
ExecStop=/etc/init.d/riemann stop
ExecReload=/etc/init.d/riemann 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:29:54 debian8 systemd[1]: Reloading LSB: Riemann server.
Feb 20 19:29:54 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)
[root@centos7 ~]# systemctl reload riemann
Failed to reload riemann.service: Job type reload is not applicable for unit riemann.service.
See system logs and 'systemctl status riemann.service' for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment