Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create dashing-icinga2.service #6

Closed
wants to merge 2 commits into from
Closed

Create dashing-icinga2.service #6

wants to merge 2 commits into from

Conversation

tachtler
Copy link
Contributor

Script for systemd

@dnsmichi dnsmichi self-assigned this Jan 18, 2017
@dnsmichi dnsmichi added this to the 1.2.0 milestone Jan 18, 2017
Create icinga2-dashing logrotate script for thin.log, because it could reach a huge size, if it wasn't rotate from time to time.
The script was tested on CentOS 7.x. The location is /etc/logrotate.d/icinga2-dashing .
@tachtler
Copy link
Contributor Author

tachtler commented Apr 2, 2017

Add a script for logrotate.d as well.

@tachtler
Copy link
Contributor Author

tachtler commented Apr 6, 2017

Hi dnsmichi,

Did you have the time to take a look on the icinag2-dashing systemd start script and the icinga2-dashing logrotate script? Maybe you can merge the two scripts into you branch?

Best regards.
Klaus.

@dnsmichi
Copy link
Collaborator

dnsmichi commented Apr 6, 2017

I'll definitely do that, thanks for the reminder.

@dnsmichi
Copy link
Collaborator

I've picked your patches and moved them underneath tools. I've further added some docs and tested the unit file inside the Vagrant box (that integration will happen soon). Everything is pushed to master now. I'll add some cosmetic changes before releasing 1.2.0.

Thanks again ❤️

[root@icinga2 ~]# mv /etc/systemd/user/dashing-icinga2.service /usr/lib/systemd/system/
[root@icinga2 ~]# systemctl daemon-reload
[root@icinga2 ~]# ps aux | grep thin
root      8529  0.0  0.0 112648   960 pts/0    S+   15:39   0:00 grep --color=auto thin
[root@icinga2 ~]# systemctl status dashing-icinga2.service
● dashing-icinga2.service - Dashing-Icinga2 host/service/network monitoring system
   Loaded: loaded (/usr/lib/systemd/system/dashing-icinga2.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
[root@icinga2 ~]# systemctl start dashing-icinga2.service
[root@icinga2 ~]# systemctl status dashing-icinga2.service
● dashing-icinga2.service - Dashing-Icinga2 host/service/network monitoring system
   Loaded: loaded (/usr/lib/systemd/system/dashing-icinga2.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2017-04-13 15:40:08 UTC; 1s ago
  Process: 8648 ExecStart=/usr/local/bin/dashing start -d -p 8005 --pid /var/run/thin.pid (code=exited, status=0/SUCCESS)
 Main PID: 8657 (ruby)
   CGroup: /system.slice/dashing-icinga2.service
           └─8657 thin server (0.0.0.0:8005)

Apr 13 15:40:07 icinga2 systemd[1]: Starting Dashing-Icinga2 host/service/network monitoring system...
Apr 13 15:40:08 icinga2 systemd[1]: Started Dashing-Icinga2 host/service/network monitoring system.

@dnsmichi dnsmichi closed this Apr 13, 2017
dnsmichi pushed a commit that referenced this pull request Apr 13, 2017
Script for systemd

refs #6

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
dnsmichi pushed a commit that referenced this pull request Apr 13, 2017
Create icinga2-dashing logrotate script for thin.log, because it could reach a huge size, if it wasn't rotate from time to time.
The script was tested on CentOS 7.x. The location is /etc/logrotate.d/icinga2-dashing .

refs #6

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
dnsmichi pushed a commit that referenced this pull request Apr 13, 2017
dnsmichi pushed a commit that referenced this pull request Apr 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants