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:
Each time after boot, I have to wait for proximately 2 minutes before Firefox starts showing any web pages. I believe the delay is caused by the following issue: Code: Apr 7 21:03:18 linux-kr6c nm-dispatcher.action: cript '/etc/NetworkManager/dispatcher.d/netcontrol_global_hooks' exited with error status 1.Apr 7 21:03:18 linux-kr6c nm-dispatcher.action: cript '/etc/NetworkManager/dispatcher.d/nfs' exited with error status 2. Apr 7 21:03:18 linux-kr6c dbus-daemon: Rejected send message, 14 matched rules; type="method_return", sender=":1.50" (uid=0 pid=3132 comm="/usr/lib/NetworkManager/nm-dispatcher.action ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply=0 destination=":1.5" (uid=0 pid=2097 comm="/usr/sbin/NetworkManager ")) Apr 7 21:05:39 linux-kr6c ntpd[3500]: ntpd 4.2.4p4@1.1520-o Mon Jan 19 14:44:51 UTC 2009 (1)Apr 7 21:05:39 linux-kr6c ntpd[3501]: precision = 1.000 usec I have no idea what my machine is doing, but it seems as nothing is happening between 21:03:18 and 21:05:39.
I've setup DHCP and a DRBL server on my box running Lucid, and everything is working fine except TFTP.TFTP is configured, but when I try to start it with:Quote:service tftpd-hpa startThe following is returned:Quote:
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.
What does this error message in `/var/log/auth.log` mean? It's showing up at about a rate of 1 per second. My indicator applets are missing as are my status bar icons. The desktop icons are flashing on and off at a rate of about 1 per second.
A little prior to this I installed Wine beta using Ubuntu Software Centre, then applied the multiuser wine recipe as noted here [URL] /showthread.php?t=917422&), then installed a game called ToonTalk3 [URL], and then tried to install DirectX 10 as per these instructions [URL]
The directx install stalled with a series of messages about being unable to copy certain dll files. I aborted the install, using the install wizard's abort command. It was a bit after this that I noticed the flashing symptoms. They may have been there earlier but I usually run my apps full screen so wouldn't have noticed.
I've reversed the wine multi-user configure, again using the recipe, and run `sudo apt-get purge wine1.2`, and logged off and on. The flashing and errors still occur.During logon there are bunch of indicator applet error message dialog boxes (which I'll post later after finishing this message and conducting another log off/on cycle). I'm running Ubuntu 10.4 LTS 32bit on an Acer Asper 3500 notebook. The install is about 2 weeks old.
Hi I am running a fedora 10 desktop. when i send an email using evolution the message was not sent but returns a error message:"Error while performing operation.DATA command failedError: 550 Viagra SPAM - Hi in Subject" and the message did not have an attachment just plain words. what might have gone wrong for i have been using this for sometime without a problem. or what security measures should be in place to remove this viagra spamAm I infected by virus on this fedora, all my updates are up to date.
I have users [URL] unable to send email to [URL]. [URL] user also unable to send email to [URL]. But both email addresses are fine as they can receive email from others or from [URL] and [URL]. I able to telnet mail server 110 and 25, no problem. Version: ESMTP Sendmail 8.12.10
Mail Log:
Feb 23 11:36:35 mail sendmail[16228]: o1N3aZxt016215: to=<xxx1@gas.com>, ctladdr=<xxx@abc.com> (501/501), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=442918, relay=gas.com, dsn=5.1.2, stat=Host unknown (Name server: gas.com: no data known)
I'm having some trouble with getting my DHCP service up and running on my server. Below is my /etc/dhcpd.conf file, which I believe is the right file necessary to get this service up and running correctly. When I do service dhcpd restart it just show in red letter [Failed] next to it.
option time-offset-18000;# Eastern Standard Time #option ntp-servers192.168.1.1; #option netbios-name-servers192.168.1.1; # --- Selects point-to-point node (default is hybrid). Don't change this unless # -- you understand Netbios very well #option netbios-node-type 2;
range dynamic-bootp 10.2.3.2 10.2.3.254; default-lease-time 21600; max-lease-time 43200;
# we want the nameserver to appear at a fixed address #host ns { #next-server marvin.redhat.com; #hardware ethernet 12:34:56:78:AB:CD; #fixed-address 207.175.42.254; } }
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.
The desktop search has stopped working in Gnome.I get a message that says 'Search Service not running' with a button that says 'Start Search Service'.When I click the button nothing happens
I have a script in /etc/init.d that starts when the machine boots up, but doesn't stop when the the machine shuts down.This simple script recreates the problem. It just logs when the 'testservice' is started and stopped. When the shutdown -h now command is run, it should be called with the 'stop' parameter shouldn't it?
I have a few problems getting a custom service/daemon to auto-start at boot. I'm running ubuntu 11.04 Server amd64 edition. One of the services is a Teamspeak3 server I'm trying to start. I would like it to start up automatically on boot. ts3 already have a script with start/stop commands so all i have done is make a little script for it to get it to run as the correct user.
I am running Postfix 2.6.1 on Suse 11.2, and am receiving an error message on my windows machine saying "Recipient address rejected: Relay access denied." If I login to my email on the local machine or via squirrelmail I have no problem sending mail. The output of postconf -n is as follows:
server:~ # postconf -n alias_maps = hash:/etc/aliases biff = no
On macbook air 6.2, i've installed a Debian jessie mate DE, dual boot using refind. I'm currently fine-tuning it. I've made a script following powertop advice:
I am trying to create a custom service to manage a minecraft server what runs in a screen session (this is to allow easy console access as opposed to running it as a nohup background process). I am hitting two main issues with this script so far and wondering if anybody is able to shed some light on it, considering I am far from the greatest BASH scripter on Earth.
The issues are related to start and stop. the first issue with start is there is a command run "screen -dmS minecraft java -Xms1024M -Xmx1024M -jar /minecraft/minecraft.jar nogui" what doesn't appear to work, however when run from console (copy and pasted) this command seems to run perfectly. I am uncertain as to why this is not working within the script. Also if run from a script in /minecraft it also appears to work but in the minecraftd script I have created at /etc/init.d it does not work. I think the issue might be related to the location but am not certain on it, nor how to resolve it.
the second issue with stop is that it works sometimes but at other times it does not, overall it seems to work about 30~50% of the time. When it works it passes a couple of disconnection messages to the screen session and then gives the stop command (the command to gracefully terminate the minecraft server). It seems to work more often when using screen that I attach to the minecraft session while it is running but really not sure if this is an issue with my scripting or an issue with how I am passing things to screen.
The full code in /etc/init.d/minecraftd is below
Code:
#!/bin/bash ## Script Information ## Script Author: Berwick East
I'm using Thunderbird under Ubuntu Lucid Lynx. I'm managing to send messages to other newsgroup but not to alt.os.linux.ubuntu. It says:"A News (NNTP) error occurred: You are not allowed to post to alt.os.linux.ubuntu". Does somebody know what is wrong and how do I enable sending messages to this newsgroup?
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.)
if there is a way to send a message to computers connected to the LAN? I tried to install linpopup but I only got the message E: Unable to locate package linpopup.
I go and restart ssh and I get this weird message. thought I should be getting ok or fail message, at least thats how I remember it. What do you think?nate@universal-mechanism:~$ sudo service ssh restart
I have installed package tigervnc-1.0.0-3.fc12.i686, but when I am trying to start it: service vncserver start it comes back with following message: vncserver: unrecognized service.
i am trying to send message through terminal with smbclient, i have searched the net and found this command
Code: smbclient -M <hostname> now i am confused on hostname, which i open the network folder i see to icons 1. is my laptop 2. Windows Network
when i enter Windows Network folder i see 2 more icons 1.MSHOME 2.WORKGROUP
and when i enter MSHOME folder i see one icon 1. MIRZA-SAAD this is the computer which has xp in it i want to send message to it with smbclient now how when i write this command i see this error
if i want to send a message to another computer? or get access to another system? what computer knowledges should i know? or what techniques should i learn?
i am new to using linux and am doing an application to send sms using the kannel? my problem is that i dont know where to get my url for the sendsms?in the mean time i have tried:-http://192.168.9.93:13013/cgi-bin/se...assword=foobar