Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 293355 Details for
Bug 391143
net-analyzer/icinga-1.5.1-r1: daemon does not start due to insufficient access rights
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
new init.d for new file locations
icinga-init.d-2 (text/plain), 1.22 KB, created by
Matthew Thode ( prometheanfire )
on 2011-11-21 20:07:15 UTC
(
hide
)
Description:
new init.d for new file locations
Filename:
MIME Type:
Creator:
Matthew Thode ( prometheanfire )
Created:
2011-11-21 20:07:15 UTC
Size:
1.22 KB
patch
obsolete
>#!/sbin/runscript > >opts="${opts} reload checkconfig" > >depend() { > need net > use dns logger firewall > after mysql postgresql >} > >reload() >{ > checkconfig || return 1 > ebegin "Reloading configuration" > kill -HUP `cat /var/run/icinga/icinga.lock` &>/dev/null > eend $? >} > >checkconfig() { > # Silent Check > /usr/sbin/icinga -v /etc/icinga/icinga.cfg &>/dev/null && return 0 > # Now we know there's problem - run again and display errors > /usr/sbin/icinga -v /etc/icinga/icinga.cfg > eend $? "Configuration Error. Please fix your configfile" >} > >start() { > checkconfig || return 1 > ebegin "Starting icinga" > checkpath -d -o icinga:icinga /tmp/icinga /var/run/icinga /var/log/icinga /var/icinga > checkpath -f -o icinga:icinga /var/log/icinga/icinga.log > rm -f /var/icinga/rw/icinga.cmd > start-stop-daemon --start --exec /usr/sbin/icinga -e HOME="/var/icinga/home" --pidfile /var/run/icinga/icinga.lock -- -d /etc/icinga/icinga.cfg > eend $? >} > >stop() { > ebegin "Stopping icinga" > start-stop-daemon --stop --pidfile /var/run/icinga/icinga.lock > rm -f /var/icinga/status.log /var/run/icinga/icinga.lock /var/icinga/rw/icinga.cmd > rm -r /tmp/icinga > eend $? >} > >svc_restart() { > checkconfig || return 1 > ebegin "Restarting icinga" > svc_stop > svc_start > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 391143
:
293347
| 293355 |
293359
|
293425