You could try replacing the line that mentions functions with:
. /lib/lsb/init-functions
Note the full stop at the start is required.
I believe this is the Ubuntu equivalent.
--
Gavin Grieve
Systems Management Specialist | Datacom | Datacom House, 68 Jervois Quay,
Wellington, 6011, New Zealand
www.datacom.co.nz<http://www.datacom.co.nz/> | PO Box 6376, Marion Square,
Wellington, New Zealand 6141
From: Daniel Wittenberg [mailto:dwittenberg2...@gmail.com]
Sent: Thursday, 13 June 2013 7:30 a.m.
To: Nagios Users List
Subject: Re: [Nagios-users] Nagios init script not working on Ubuntu 12.04
Functions is a file on rhel-based systems and provides common start/stop
routines. I dont use Ubuntu myself but if you figure out how to make it work
let me know. If I get some time I'll see if I still have an ubuntu test VM to
look at.
Dan
On Jun 12, 2013 2:09 PM, "Abhinav Upadhyay"
<er.abhinav.upadh...@gmail.com<mailto:er.abhinav.upadh...@gmail.com>> wrote:
Hi,
I just followed the instructions on
http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html to
install the latest stable release of Nagios (3.5) on a fresh Ubuntu
12.04 machine. Everything went fine, but when I try to start nagios
using /etc/init.d/nagios start, I get following error:
/etc/init.d/nagios: 20: .: Can't open /etc/rc.d/init.d/functions
There is no file at /etc/rc.d/init.d/functions. It seems like the
Makefile could not put the functions file at /etc/rc.d/init.d ? Is it
a bug or I missed something?
Regards
Abhinav
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net<mailto:Nagios-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null