Ubuntu Servers :: Custom Service Start At Boot?

Jul 6, 2011

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.

Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides: ts3
# Required-Start: $all
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5

[Code]...

View 7 Replies


ADVERTISEMENT

Fedora Servers :: HTTPD Service Does Not Start - Could Not Bind To Address

Nov 17, 2010

I have one problem regarding my web server. When I am try to restart my httpd service it shows...

[root@localhost ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs [FAILED]
[root@localhost ~]#

View 2 Replies View Related

General :: Service Won't Start At Boot?

May 25, 2010

I have a service/daemon that won't start from boot. I have used the chkconfig --add <script name> command that went ok I also used the chkconfig <script name> on and that seems to be fine and I have made the script executable Chmod 777 <filename>. By all account it looks like the script is running at boot the the services has not started. When I do a ps -ef | grep ndb_mgmd this process is no there. the script can be run from the console and sems to run fine!

#!/bin/bash
# chkconfig: 345 70 30
# description: MySQL Cluster management server start/stop script
echo hello Paul >> /tmp/hello.txt
configdir=/var/lib/mysql-cluster/

[Code]....

View 10 Replies View Related

OpenSUSE Install :: Add Service To Boot At Start?

Apr 9, 2010

I wonder how could I start my ruby on rails mongrel_cluster at the start of my openSUSE 11.0 Server and I don't have a GUI. So the shell solution would be good.

View 1 Replies View Related

Debian :: Start Service At Boot Time On 4?

Mar 10, 2010

I am using Debian4 and I have apache under /home/apache/bin/apachectl How to start the apachectl service for every time system restart, Itmust be start automatically. Please tell me how todo or how to write the script, how to configure forrun level 2,3 and 5

View 6 Replies View Related

Fedora :: Boot Stops At 'Start Service Local'

Feb 13, 2011

I performed the first update in 4 months to my Fedora 12 Constantine. I also removed a 'dial-up' package (figured i didnt need it) and the KDE package after the update. Firefox was not getting a connection to the internet at this point. The network view showed the ethernet as inactive. Everything besides Firefox appears to work fine.

I restart machine.

It boots until right after the fedora logo fills up. At this point my dual monitors go to sleep. No response from anything. When I start in interactive mode I hit y for everything. Everything works great until libvirtd, libvirt-guest, and local. After y on all three nothing happens. I can type on the screen but no response. It just sits there. I can boot into text mode and do whatever I want. What can I do? What other information do I need to move forward?

I have looked at the Xorg.0.?? i forget what its called. I am not versed in reading the messages in it. Same for the other logs I looked at.

How I troubleshoot Linux problems: Install Linux -> Problem -> Google -> Run Command -> Didn't work? -> Start Over

View 10 Replies View Related

General :: Fedora 12 After Upgrade - When Start Interactive Boot It Hangs After Trying To Run The Service Local

May 19, 2010

Recently i've upgraded my fedora 11 to 12 using the preupgrade command and now I have a problem booting! when i start the interactive boot it hangs after trying to run the service local, it looks as if its trying to boot because the cursor blinks really fast then blinks normally after a few seconds. no error was stated during the event. what seems to be the problem here?

View 3 Replies View Related

Fedora Servers :: F15 Sendmail Service Not Starting On Boot-up?

May 29, 2011

Just upgraded to F15 and I cannot seem to get the sendmail service starting at boot time.It starts and works just fine by hand after boot, so there's nothing wrong with the sendmail
configuration itself."runlevel" shows a current run level of 5 and "chkconfig" shows sendmail on for run level 5.All the other mail service (mailman, clamd, etc.) start fine.Doing "service sendmail start" after boot gets everything up and running just fine, but itsure would be nice to have it run at boot like it used to

View 1 Replies View Related

Ubuntu Servers :: Perform An Action Before A Service Starts And After A Service Stops

Sep 10, 2010

I am running Server 10. I have a requirement to perform an action before the MySQL service starts, and perform another action after MySQL service stops.

I found the init script for MySQL under /etc/init/mysql.conf. I added my thing to the pre-start script there and works fine.

I am having trouble finding the script that stops the server so I can modify.

View 1 Replies View Related

Fedora Servers :: FDS - "service Dirsrv-admin Start" Hangs

Feb 3, 2009

The Fedora Directory Service LDAP database administration console was working okay until I rebooted the server.

- dirsrv starts okay
- but dirsrv-admin just freezes without any error messages.

How I should get started to fix it?

View 1 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

Fedora Servers :: NMB Service Fails On Boot, Needing To Be Restarted Manually?

Mar 30, 2009

I have the Samba server & users configured, I can access between Linux/Windows shares and both SMB & NMB services are set to be enabled at boot.Everything working.But when I restart the computer, I notice in services configuration that "This service is dead." for NMB. Therefore I have to enable it manually upon boot so that it works.I'm using Fedora 10, fresh installed and updated. I've noticed through search that others have had this issue as well throughout other versions of Fedora, yet I have not found a conclusive solution to this.

View 3 Replies View Related

CentOS 5 :: Custom Service Isn't Stopped?

Mar 17, 2009

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?

# Att /etc/init.d/testservice
#!/bin/sh
#

[code]....

View 12 Replies View Related

Debian Configuration :: Systemd Custom Service

Aug 4, 2015

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:

Code: Select all[newb@debian /etc/systemd/system]$ cat mba_kb_sp.sh
#!/bin/sh
echo 'auto' > '/sys/bus/usb/devices/1-3.1/power/control';
echo 'auto' > '/sys/bus/usb/devices/1-3.2/power/control';
echo 'auto' > '/sys/bus/usb/devices/1-5/power/control';
exit 0

[Code] ....

All seems to work fine, however when i check the sys file it didn't change. But I can start manually the systemd service and, this time, it works.

View 2 Replies View Related

Fedora :: Privoxy Service "start On Boot" Unreliable

Dec 12, 2009

In an effort to reduce/eliminate adware, I installed Provoxy from the F12 repos using yumex. The config file is unchanged except for the addition of the this line: forward-socks4a / 127.0.0.1:9050 .

I note that rpm placed the following (/etc/rc.d/init.d/privoxy), and that in that file are the following lines:

I seem to recall that network manager was changed somewhat to allow those using static ip addressing to NOT do dhcp on boot. Could this be the reason for the non-starting of the privoxy service on boot? Sometimes it starts on boot, and other times I must manually start it in Gnome's System->Services.

If these lines and the network starting is the problem, how do I fix it? Can I comment out these lines in this file, or is there somewheres else where I should be looking?

View 7 Replies View Related

Programming :: BASH Scripting - Creating A Custom Service (CentOS)?

May 7, 2011

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

[code]....

View 9 Replies View Related

OpenSUSE :: Get A Message That Says 'Search Service Not Running' With A Button That Says 'Start Search Service'?

Jun 12, 2010

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

View 1 Replies View Related

Server :: DHCPD Will Start In Debug But Will Not Start As A Normal Service

Jun 7, 2010

I have setup a CentOS 5.5 server as a DHCP server. That will be it's only task in a Cisco callmanger VoIP environment The DHCP server that comes with CentOS 5.5 is from ISC V3.0.5 -redhat.

The server (HP DL360) has two physical NIC's of which only NIC1 is used (ETH0)

ifconfig shows:

Code:

The interface has a fixed IP setup.

My dhcp.conf file looks like this:

Code:

When I start (try to) dhcpd via the service interface or via the prompt as

Code: service dhcpd start

I get an [FAILED] message and the following is in /var/log/messages

Code:

But when I start the DHCPD on the comamnd prompt in debug mode it looks as follows:

Code:

and /var/log/messages shows:

Code:

Why does the system ask a declaration for eth0 0.0.0.0?

View 3 Replies View Related

Ubuntu Servers :: Samba Does Not Start On Boot-up?

Mar 22, 2010

My problem is that the samba daemon does not start on boot-up anymore on my file-sharing server.Samba starts flawlessly if start it manually.If I run:

Code:
/etc/init.d/samba status
I get :

[code].....

View 9 Replies View Related

Ubuntu Servers :: MySQL Does Not Start On Boot

May 11, 2010

Ubuntu server 10.04 comes with a new event based startup system, and I wonder if that can be responsible for this problem. The server has been upgraded from 9.10. On reboot mysql does not always manage to start... /var/log/mysql/error.log has info similar to this:

100511 19:05:00 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
100511 19:05:00 [ERROR] Do you already have another mysqld server running on port: 3306 ?
100511 19:05:00 [ERROR] Aborting

So apparently port 3306 is not 100% unused when mysql tries to open it or somehow network connections are not ready, even if mysql start is supposed to wait for 'net-device-up' and 'local-filesystems' according to /etc/init/mysql.conf. This does not happen on all reboots. I am supposed to be able to start it manually with command 'start mysql' but that does not seem to work also. When I try start it again, it says mysql is running but no databases can be reached and mysqld is not active, reboot and good luck is all that helps...

As far as I know there are no firewalls installed, at least none I have manually configured and it has worked with no problems on 9.10. So this new upstart thing seems responsible. It simply does not let mysql wait until it can start in good way. That also explains why it's a random problem. If all starts happen when and if there is free processor time, it does not always start things in the same order on every reboot. The key here is port 3306, or whatever port mysql is configured to use. The upstart system simply needs delay the start until the port is 100% free and available for the system to use.

View 1 Replies View Related

Ubuntu Servers :: Mysql Do Not Start At Boot?

Jul 26, 2010

Recently, few days or maybe a week ago I updated mysql and now mysql service do not start at boot. I must start it manualy, before this update it start automaticly.

View 9 Replies View Related

Ubuntu Servers :: Start Liferay At Boot?

Aug 20, 2010

I know Ubuntu has changed the startup system in 10.04 and I am wondering how to go about starting my liferay server at boot (instead of starting manually).

There's already a startup script, can I setup a symlink to somewhere to have it start automatically?

I've tried searching through documentation and google but most of it applies to older versions of Ubuntu.

View 3 Replies View Related

Ubuntu Servers :: Xampp Will Not Start On Boot?

Sep 29, 2010

I have recently set up my web server using the LAMPP package for Ubuntu. Now I'm running Ubuntu Server 10 so my machine boots into the console and not gdm. Also I have my machine autologin as root so I can simply turn my server on and not mess around with logins. Now I created a simple shellscript for starting lampp and then I put it into etc/init.d/, chmod -x file.sh to give it executable permissions, then I update-rc.d file.sh defaults but nothing happens on startup. It simple takes me to the console and nothing more happens. I have to manually start lampp on every bootup.

View 1 Replies View Related

Ubuntu Servers :: Compiled Mysql Start On Boot?

Mar 24, 2010

I just compiled mysql apache and php from source and I have apache to start up from boot but I don't exactly know how to get mysql to do the same.

Edit: Also how do I add mysql to path? Should I just symlink it to somewhere thats in the path or what? And if that is the case wheres the best place to symlink it too.

View 3 Replies View Related

Ubuntu Servers :: Apache Server Don't Want To Start By Itself On Boot

Apr 6, 2010

My apache server don't want to start by itself on boot.

View 9 Replies View Related

Ubuntu Servers :: Start MySQL Before Jabber On Boot

May 3, 2010

Currently when the system boots, It boots jabberd2 before mysql. So jabber fails. Then, later mysql is loaded. I either want to force jabber to load mysql first, or make the system boot mysql first. I've tried changing /etc/init.d/jabberd2 to say "# Required-Start:
mysql $network $named $remote_fs"...
However, insserv says that mysql service has to be enabled... so I assume that's an issue because mysql is an upstart script.

View 5 Replies View Related

Ubuntu Servers :: Start The Cod As A Specified User On System Boot?

May 4, 2010

Whats a way to start the cod server as a specified user on system boot. Whats the best way for me to do this? The cod server is located in the users home directory

View 8 Replies View Related

Ubuntu Servers :: Sometimes Does Not Start - Boot Process But Then Hangs

Oct 31, 2010

Running Ubuntu Server 10.04 32 bit. Sometimes when I reboot it does not start up, It seems to be going through the boot process but then just hangs. I have had a look at the log files and can't see anything, but I'm not really sure what I am looking for.

View 2 Replies View Related

Ubuntu Servers :: Tomcat 6 Won't Start At Boot But Otherwise All Is Normal

Nov 18, 2010

I'm having some trouble with Tomcat 6 after upgrading to 10.10. During the upgrade process, the installer hung while dealing with Tomcat 6, which required me to kill the upgrade and do some clean up, and then re-run `apt-get upgrade` again to get things going. This left some weirdness (like the MOTD for both 10.10 and 10.04 being shown on login), but otherwise things are OK. The only remaining problem I have is Tomcat; it simply won't start when the server is booted. The information I have:

Tomcat 6 runs normally when started with `sudo /etc/init.d/tomcat6 start`. No errors are thrown, everything works as expected.I used `rcconf` to try removing and reinstalling the rc scripts, this didn't help. I manually deleted all the rc scripts, then used `rcconf` again. The scripts all seem symlinked correctly to `/etc/init.d/tomcat6`, but it's just not coming up on boot. I ran `sudo grep "tomcat" /var/log/*.log` to see if something is appearing in the logs, but nothing of interest is there.

How can I verify that Ubuntu is even trying to start Tomcat? As this is a development box, I am not adverse to a quick + dirty solution if there's some either simple way of getting it started at boot. I'm thinking the next Ubuntu release will see me blow away the server and start it fresh, but right now I'd just like a working box

View 7 Replies View Related

Ubuntu Servers :: Start Dropbox Daemon At Boot On 10.04?

Dec 19, 2010

I am having some trouble making the dropbox daemon start at boot. I followed these instructions -> [URL], which are basically a replica of the original instructions from the Dropbox Wiki [URL]. The installation went fine, except that the machine still cannot start the daemon at boot. I tried to modify the init.d script a bit (see the attachment), but it still wont work (I am not sure if my changes made any significant difference, though). The daemon will only start if I invoke it manually after login with the command:

Code:

[user@machine:~]$ service dropbox start

Which executes the daemon just fine. I also tried adding this line of code to crontab:

Code:

@reboot /etc/init.d/dropbox start

This command starts the daemon if I check with the command "service dropbox status", but if I execute the official dropbox CLI command:

Code:

~/bin/dropbox.py status

it says that Dropbox isn't running and I still have to execute it manually.

P.s.: The machine runs Ubuntu Server 10.04, with all the latest system patches and updates.

View 3 Replies View Related







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