Ubuntu :: Example Upstart Script For Network Service / Daemon?

Jun 16, 2010

I'd like to create a couple of upstart scripts for some network service daemons (eg. usenet downloading service, torrent service, media management services, etc).Basically they should start after the network service is started and the system is running (runlevel 2?) but I'm just wondering if anybody has an example script or more specific start/stop conditions that I can use.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Custom Upstart Service Failing With "Rejected Send Message"

Feb 8, 2011

I'm trying to write an upstart conf file to get Murmur (the Mumble server) to run as a service. It's located in /etc/murmur, and I'm using the following script in /etc/init/murmur.conf:

[Code]...

View 1 Replies View Related

Red Hat / Fedora :: Running Java As Daemon / Service

Jul 7, 2010

I have a java program which I need to run as a service or daemon. What is the most stable method to do it? It will be heavy processing socket programming which will be continously receiving data?

View 4 Replies View Related

General :: Can't Start NTOP Service / Daemon

Jun 14, 2011

I have installed version of ntop 4.0.3 by guide.But I can't start ntop daemon/service. I didn't find a service file for starting.During the installation there was no problem only want to RRDTool so I installed that. Now there is no necessary package required.

View 1 Replies View Related

Ubuntu Networking :: Avahi-daemon Service File Permissions?

Jun 19, 2010

In a previous thread I had detailed an issue I was having with avahi not firing up properly at startup.As a bit of background: the services available on the server aren't advertising until I restart the avahi-daemon manually after startup - The syslog shows the daemon starting on boot, but it never seems to access the service file.I was wondering if it is possible that this may be a file permission problem?

View 1 Replies View Related

Ubuntu :: Not Getting Background Daemon Statup Service Notification Message Box

Jun 22, 2011

I have created a script named ssh_inotify.sh to check /var/log/auth.log log file for newly started ssh session and display a question message box. This script uses inotifywait to monitor this above log file for modify file event and zenity to create question message boxes.Now i have created a startup service config file named ssh_inotify under /etc/init.d folder and placed the script ssh_inotify.sh under /usr/sbin and chmod this script to be executable.

The service config file ssh_inotify uses start-stop-daemon to run this script as background process.Now theproblem is that when i start this service using sudo service ssh_inotify start, the service is started, I can confirm this using ps -A | grep ssh_inotify also i can check for the PID associated with it under /var/run/ssh_inotify.pid. Now when i ssh to my machine, i do not get the question message box, I am writing in log file and in that i can see that the message under cancel button option for question message box is getting printed.This script runs perfectly when run directly or using start-stop-daemon command directly (exact command as typed in service config file above) on terminal, but not when this same command is executed using service file.Can someone please suggest me the solution and reason for such behavior when same command executed under different mode (using service or directly from terminal).If you guys require code, i can attach the files (currently i am in office so don't have access to these files.)

View 1 Replies View Related

Programming :: Write Shell Script So That It Can Run As Service / Daemon

Mar 8, 2010

Am not sure of the best way to go about writing a script. All I need at the moment is to start a java http server program at startup.How should I write languagetool.sh so as to be able to stop the script execution?

View 10 Replies View Related

Ubuntu Networking :: NFS Doesn't Mount Correctly - Network Manager And Upstart

Sep 25, 2010

I have the following problem: There are three NFS mounts in /etc/fstab, which are automatically mounted. The network connection runs over NetworkManager. Since NWM brings up the network asynchronously, NFS doesn't mount correctly on the first try, but is loaded soon enough since mount automatically retries until it works.

I can live with the fact that I have an error in my boot messages, since everything is up in time for the user. But, I need a (selfmade) upstart script which depends on the NFS mount being up. Even using "remote-filesystems" as the trigger doesn't help, because the trigger is apparently sent after the first failed try (I checked with cat /proc/mounts in my script, the nfs mounts are clearly not up.) Can I somehow force the remote mounts to wait until NWM is up, or make the NFS mount emit an event when the mounts really get mounted?

View 6 Replies View Related

Fedora :: Start A Service Before Network Service?

Nov 6, 2010

I need to start a service before network service How to?

View 1 Replies View Related

General :: Network Is Running Even If Network Service Is Stopped?

Mar 8, 2010

I just want to know one thing. I had stop the network service in ubuntu, still i can able to ping google.com.what u think might be things to consider. these are the outputs see.

root@jeetendra-desktop:~# /etc/init.d/networking stop
* Deconfiguring network
interfaces... [ OK ]
root@jeetendra-desktop:~# ping google.com

[Code]....

View 4 Replies View Related

Ubuntu Networking :: Simple Network Monitor Daemon?

Nov 2, 2010

i have been looking for a simple network monitor daemon for ubuntu, for some time but have not found anything that suits my requirements and from what i've been reading online there seems to be quite alot of other people out there that are looking for the same thing. [URL]...for-linux.html page seems to have the most comprehensive list of similar products but if you read through all of them they don't seem to be what i'd imagine most home users need. here's a list of what i had in mind, if any one uses something that has these features or knows of something that might meet these requirements please let us know! 1)a small lightweight daemon that can be accessed via the panel on gnome 2)has thee ability to monitor eth or ppp (particularly internet traffic)3)can represent this data in a human readable format ie using megabytes and gigabytes 4)can store a history of how much data is being sent and received over long periods of time (like several months)

View 2 Replies View Related

OpenSUSE Network :: SSH Daemon, Apache, MySQL Not Responding?

Nov 20, 2010

Dear all, I have system running LAMP and acting as a regular webserver.After running the setup for quite some months, I start having major issues:Symptoms:1. Applications do not respond neither from LAN nor WAN - SSH daemon, Apache, MySQL, FTP2. Network still seems to work for ping and port listeners3. Telnet is still successful for 21, 22, 80, 33064. Server has to be restarted manuallyTrying to find out the issue, I went through /var/log/ looking for major issues or warnings. But nothing seemed plausible to me to understand the issue - except I knew I was running out of disk space a few times.Not being able to identify nor replicate the issue, I replaced the hardware running 24x7 since quite a few years. Doing this, I migrated at the same time from OpenSUSE 10.1 to 11.3.The machine itself is behind a firewall and only the above mentioned standard ports are accessible

View 4 Replies View Related

General :: Get The Wicd Daemon To Disconnect Wireless Network From The Command Line?

Mar 14, 2011

I'm thrilled using wicd to connect to wireless networks. But when I suspend my laptop using the special keys, I just want to disconnect from wireless without having to use any kind of GUI or curses user interface. It says in the documentation that wicd works by sending DBUS messages, so presumably it's possible to write a command that talks to the daemon directly.But I can't figure out how.Does anybody know by means of what shell command I can tell the wicd daemon to disconnect me from my wireless network?

View 2 Replies View Related

Ubuntu :: What Does Network Service Discovery Disabled Mean?

Nov 28, 2010

Every time i boot up i get an annoying message that says: Network service discovery disabled.

View 1 Replies View Related

Ubuntu :: Error On Restarting Network Service

Jun 1, 2011

On restarting networking service, i am getting the following error,

Code:
karthick@karthick:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces.. ssh stop/waiting
ssh start/running, process 5427
start: Job failed to start
[ OK ]

View 1 Replies View Related

Ubuntu Installation :: Update -network Service Discovery Disabled?

Jan 2, 2010

When I ran updates and installed 9.10, this message appeared, "Network service discovery disabled. Your current network has a .local domain, which is not recommended and incompatible with the Avahi network service discovery. The service has been disabled." The computer will not respond to anything, completely frozen--I am not able to open any programs and the CPU itself seems to be running loudly.

View 1 Replies View Related

OpenSUSE Network :: Allow Openvpn Service In Firewall?

Jul 13, 2010

I can't get my openvpn work if the firewall is on , and I also don't see any option to allow openvpn service in firewall allow service.

View 1 Replies View Related

Networking :: Network Service Failing To Start

Mar 5, 2011

I have recently installed CentOS onto an old machine to get it up and running as a basic web/mail server. Originally the Network Interface worked ok, however I have been editing /etc/sysconfig/network-scripts/ifcfg-eth0 to try and set the IP address to be static.Now when I run the 'service network restart' command it won't bring the eth0 interface up and comes up with the following errors;

ifcfg-eth0 Line 3 DEVICE: command not found
missing config file ifcfg-ifcfg-eth0

It doesn't seem to like any of the command words, even though most of these were in the original file that worked and the ones I added to do static I have commented out.

View 4 Replies View Related

Networking :: Trying To Figure Out The Base (network Service)?

Jun 11, 2011

I have been suffering a connection problem with one of my VPSs recently and I really just can not seem to figure out what is causing the issue. First of all the issue only appears to hit my home computer/network and not other people, it might sound like a routing issue but it doesn't appear to be so. When I am hit by connection issues, I can resolve the issue by logging into Dom-0 (all other VPSs are also available) and consoling the offending VPS before running "service network restart". I personally can not think of anything that would require the network service being restarted and only hit myself (and only at home on top of that).

The VPS itself is dedicated to running minecraft server and is using CentOS, when it occurs I can not SSH the server either, all other ports and methods are disabled by firewall (iptables appears to have no effect in regards to this issue either). Fundamentally I am just thinking if anybody could think of any reason the VPS would only refuse connection to myself that restarting the network service would fix. A few other notes, the physical Server is hosted within a Datacenter, running 24/7 with a static IP. No other VPSs hosted on the machine have any such issues, the machine appears running normally via console and has no visible errors or logs that I know of reporting any issues that could be causing this.

View 2 Replies View Related

Server :: Error When Restarting Network Service

Jun 19, 2011

I use red hat linux. When I start up network service. I get below error in eth2
root@vls etc]# service network restart
Shutting down interface eth2: [OK]
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth2: RTNETLINK answers: File exists
Error adding address 10.1.1.82 for eth2. [OK]

I paste the ifcfg-eth2 in here
[root@vls network-scripts]# cat ifcfg-eth2
# Intel Corporation 82572EI Gigabit Ethernet Controller (Copper)
DEVICE=eth2
BOOTPROTO=none
BROADCAST=10.1.255.255
HWADDR=00:80:82:8F:B4:A2
IPADDR=10.1.1.82
NETMASK=255.255.0.0
NETWORK=10.1.0.0
ONBOOT=yes
GATEWAY=10.1.1.249
TYPE=Ethernet
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
So, what is the problem of error adding address?

View 1 Replies View Related

Server :: Network Information Service Configuration?

May 17, 2010

How do you setup Secondary or Slave Servers in NIS? Will the domain of the slave server be the same as the Master Server?

View 1 Replies View Related

CentOS 5 :: Difference Between Network And NetworkManager Service

Oct 26, 2009

i just finished installing CentOS 5 in my laptop. While I was trying to configure my Wireless network to connect internet, I found a guide in CentOS site which recommended to start "NetworkManger" service so as to setup wireless network. I followed and it Worked great.

But i would like to understand the difference between "Network" service and "NetworkManager" service. I had initially thought restarting "Network" service would help. explaining the basic difference between these 2 services.

View 2 Replies View Related

OpenSUSE Network :: Error - Cannot Enable Service SUSEFirewall2_setup

Mar 15, 2011

I am getting the error Cannot Enable Service SUSEFirewall2_setup when I try to set up the firewall in Yast.

11.4 x86-64
KDE 4.6.00

View 1 Replies View Related

General :: Unable To Start Network Service On My Centos Box

Nov 28, 2010

I am unable start network service on my centos box. /etc/init.d/network start device eth0 does not seem to be present, delaying initialization lspci | grep Ethernet

Doesn't show any results. It seems os doesn't identify my NIC. I am using compaq presario model pc

View 6 Replies View Related

Ubuntu Networking :: Setup A OpenVpn On 10.04 - Error "Stopping Virtual Private Network Daemon - No VPN Is Running"

Mar 15, 2011

I'm trying to setup a OpenVpn on my Ubuntu 10.04 and after doing the configs from here: [URL] I get an error:

[Code]....

View 1 Replies View Related

Fedora Networking :: F11 - Service Network Restart Does Not Bring Up All Interfaces

Jun 23, 2009

If I restart the network service, not all interfaces come back up. Is this expected behaviour or does something need a kick?

Code:
[root@@aspire3500 ~]$ service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface wlan0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
[root@@aspire3500 ~]$

View 3 Replies View Related

Fedora Servers :: Internal Mail Service Setup With 7 PCs On Network?

Jul 27, 2010

I've 7 PC's on my network. I've to setup an internal mail service, to send mails inside the network. I've installed Fedora 12 on one machine and the rest run's on Windows XP. What all packages do I need? How can I configure it?

View 2 Replies View Related

Fedora :: Bring Up Whatever Service Holds The Network Settings Without GNOME?

Aug 27, 2010

I have a problem with my Fedora system. Whilst I was messing around with my graphics drivers I managed to totally screw up the system, now my desktop won't start, leaving me with just the command prompt. In order to fix it I will need to get my wireless adapter connected to my home network, this is proving tricky. I understand that NetworkManager is responsible for bringing up the network but unfortunately without starting GNOME I don't have the settings available to me (through the nm-cli) or a way to configure it.

Is there a way to bring up whatever service holds the network settings without GNOME? In the meantime I am looking into alternative ways of configuring NM, perhaps through the DBUS interface? Even so, I suspect that I will still need a settings ervice at the end of it..

View 6 Replies View Related

Fedora Networking :: Service Network Restart - Device Not Active

May 1, 2011

I use fedora 14 and when I'm trying to run the network service on my system it gives me the following error -

# service network restart
Shutting down interface eth0: Error: Device 'eth0' (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: This device is not active [FAILED]
Shutting down loopback interface: Error: Device 'lo' not found. [FAILED]
Bringing up loopback interface: [OK]
Bringing up interface eth0: Error: Connection activation failed: Device not managed by NetworkManager or unavailable [FAILED]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists

And whenever I try to activate the device in graphical mode again it shows the above same error.

View 6 Replies View Related

OpenSUSE Network :: Nagios Won't Monitor Service With Self Signed Cert

Jan 14, 2011

Updating my install of OpenSUSE from 11.0 to 11.3 and notice that the Nagios network monitor can no longer probe servers with self signed certs.It appears to be any monitor that used openssl 1.0.0 has an issue. If I install the openssl 0.9.8 libraries and use old plugins linked against it, they work fine.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved