Skip to content

Instantly share code, notes, and snippets.

@pradeepchhetri
Last active February 20, 2017 19:35

Revisions

  1. Pradeep Chhetri revised this gist Feb 20, 2017. No changes.
  2. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -42,6 +42,6 @@ Feb 20 18:46:37 debian8 systemd[1]: Started LSB: Riemann server.
    ```bash
    root@debian8:~# systemctl reload riemann
    root@debian8:~# journalctl
    Feb 20 19:29:54 debian-512mb-nyc2-01 systemd[1]: Reloading LSB: Riemann server.
    Feb 20 19:29:54 debian-512mb-nyc2-01 systemd[1]: Reloaded LSB: Riemann server.
    Feb 20 19:29:54 debian8 systemd[1]: Reloading LSB: Riemann server.
    Feb 20 19:29:54 debian8 systemd[1]: Reloaded LSB: Riemann server.
    ```
  3. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 4 additions and 6 deletions.
    10 changes: 4 additions & 6 deletions installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -40,10 +40,8 @@ Feb 20 18:46:37 debian8 systemd[1]: Started LSB: Riemann server.
    ```

    ```bash
    root@debian8:~# systemctl status riemann
    ● riemann.service - LSB: Riemann server
    Loaded: loaded (/etc/init.d/riemann)
    Active: active (exited) since Mon 2017-02-20 19:24:18 UTC; 4min 38s ago

    Feb 20 19:24:18 debian8 systemd[1]: Started LSB: Riemann server.
    root@debian8:~# systemctl reload riemann
    root@debian8:~# journalctl
    Feb 20 19:29:54 debian-512mb-nyc2-01 systemd[1]: Reloading LSB: Riemann server.
    Feb 20 19:29:54 debian-512mb-nyc2-01 systemd[1]: Reloaded LSB: Riemann server.
    ```
  4. Pradeep Chhetri revised this gist Feb 20, 2017. 2 changed files with 16 additions and 1 deletion.
    9 changes: 9 additions & 0 deletions installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -37,4 +37,13 @@ root@debian8:~# systemctl status 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.
    ```

    ```bash
    root@debian8:~# systemctl status riemann
    ● riemann.service - LSB: Riemann server
    Loaded: loaded (/etc/init.d/riemann)
    Active: active (exited) since Mon 2017-02-20 19:24:18 UTC; 4min 38s ago

    Feb 20 19:24:18 debian8 systemd[1]: Started LSB: Riemann server.
    ```
    8 changes: 7 additions & 1 deletion installation-rpm.log.md
    Original file line number Diff line number Diff line change
    @@ -32,4 +32,10 @@ ExecStop=/etc/rc.d/init.d/riemann stop
    Loaded: loaded (/etc/rc.d/init.d/riemann; bad; vendor preset: disabled)
    Active: inactive (dead)
    Docs: man:systemd-sysv-generator(8)
    ```
    ```

    ```bash
    [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.
    ```
  5. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 27 additions and 19 deletions.
    46 changes: 27 additions & 19 deletions installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,33 @@
    ```bash
    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) ...
    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
    ```

    Last step during above installation **Processing triggers for systemd** runs
    ```bash
    $ systemctl daemon-reload
    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
    ```

    ```bash
    @@ -20,13 +37,4 @@ root@debian8:~# systemctl status 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.
    ```

    ```bash
    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.
    ```
    ```
  6. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 15 additions and 1 deletion.
    16 changes: 15 additions & 1 deletion installation-rpm.log.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,10 @@
    ```bash
    [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
    ```

    ```bash
    [root@centos7 ~]# cat /run/systemd/generator.late/riemann.service
    # Automatically generated by systemd-sysv-generator
    @@ -18,4 +25,11 @@ GuessMainPID=no
    RemainAfterExit=yes
    ExecStart=/etc/rc.d/init.d/riemann start
    ExecStop=/etc/rc.d/init.d/riemann stop
    ```
    ```
    ```bash
    [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)
    ```
  7. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 21 additions and 0 deletions.
    21 changes: 21 additions & 0 deletions installation-rpm.log.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    ```bash
    [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
    ```
  8. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ Setting up riemann (0.2.12) ...
    Processing triggers for systemd (215-17+deb8u6) ...
    ```

    **Processing triggers for systemd** runs
    Last step during above installation **Processing triggers for systemd** runs
    ```bash
    $ systemctl daemon-reload
    ```
    @@ -21,3 +21,12 @@ root@debian8:~# systemctl status riemann

    Feb 20 18:46:37 debian8 systemd[1]: Started LSB: Riemann server.
    ```

    ```bash
    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.
    ```
  9. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -9,8 +9,9 @@ Processing triggers for systemd (215-17+deb8u6) ...
    ```

    **Processing triggers for systemd** runs

    **systemctl daemon-reload**
    ```bash
    $ systemctl daemon-reload
    ```

    ```bash
    root@debian8:~# systemctl status riemann
  10. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,10 @@ Setting up riemann (0.2.12) ...
    Processing triggers for systemd (215-17+deb8u6) ...
    ```

    **Processing triggers for systemd** runs

    **systemctl daemon-reload**

    ```bash
    root@debian8:~# systemctl status riemann
    ● riemann.service - LSB: Riemann server
  11. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ Selecting previously unselected package riemann.
    Preparing to unpack riemann_0.2.12_all.deb ...
    Unpacking riemann (0.2.12) ...
    Setting up riemann (0.2.12) ...
    <b>Processing triggers for systemd (215-17+deb8u6) ...</b>
    Processing triggers for systemd (215-17+deb8u6) ...
    ```

    ```bash
  12. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ Selecting previously unselected package riemann.
    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) ...**
    <b>Processing triggers for systemd (215-17+deb8u6) ...</b>
    ```

    ```bash
  13. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -5,13 +5,14 @@ Selecting previously unselected package riemann.
    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) ...
    **Processing triggers for systemd (215-17+deb8u6) ...**
    ```

    ```bash
    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.

    ```
  14. Pradeep Chhetri revised this gist Feb 20, 2017. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions installation-deb.log.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,12 @@
    ```bash
    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) ...**

    Processing triggers for systemd (215-17+deb8u6) ...
    ```

    root@debian8:~# systemctl status riemann
    ● riemann.service - LSB: Riemann server
  15. Pradeep Chhetri renamed this gist Feb 20, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  16. Pradeep Chhetri created this gist Feb 20, 2017.
    16 changes: 16 additions & 0 deletions installation-deb.log
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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) ...**


    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.