Ubuntu :: Make Init Use A Certain Flag For A Service It Starts?
Jun 15, 2011
I've installed MongoDB and I want init to start the database with the --journal flag. I'm quite rusty on how init works, but I know it involves the /etc/init and /etc/rc directories.I've found /lib/init/upstart-job and someone in the chat is suggesting that I just edit that bash script, but I can see it's involved with more than half the system service, so I'm a little hesitant to edit it. In fact, I'm pretty sure if I followed that advice I'd really screw up my system and then the person "helping" me would just stop responding.
View 1 Replies
ADVERTISEMENT
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
Mar 12, 2010
I have reviewed the HowTo wiki on Setting up an SSL secured Webserver with CentOS [URL], and have successfully set up my server.
We are using the conditional <IfDefine SSL> tags around the <VirtualHost _default_:443> section. I wanted to do this because we are deploying a standard <VirtualHost> section that is appended to the httpd.conf file for several Apache versions on several OS's, and this makes maintenance much easier. Sometimes the server will be configured with SSL support, and sometimes not, depending on certain functions of our application that the end user will require and determine. Our application then determines which mode the server should be run in depending on these functions, what OS is being run, what version of Apache is being run, etc, and starts the httpd server in the appropriate mode. For CentOS 5 with Apache 2.2, if the application indicates SSL is required (and we expect the server to be configured appropriately), then we do the following:
/usr/sbin/apachectl -D SSL -k start
View 1 Replies
View Related
Aug 21, 2011
I want to run 1 instance of x11vnc at boot after gdm starts, itsa remote vnc server that will work without me first loggin in
Im just not sure where or how to start it when computer boots? i can run it on another tty and connect so its all setup but not sure what the "right" was is.
View 5 Replies
View Related
Apr 29, 2011
dear, in centos / fedora, I can config to start a permanent vnc session by setting the /etc/sysconfig/vncserver file when the system starts. Is there any similar configuration in opensuse which give me a permanent session?
View 6 Replies
View Related
Jul 6, 2010
I am using centos 5.5 x85_64 2.6.18-194.3.1.el5 The server is hanging at start up due to the follwoing error
udevd[746] nss_ldap reconnecting to LDAP server (sleeping 4 seconds)
udevd[746] failed to bind to LDAP ser er ldap://192.168.0.100 cant contact ldap
It fails and then tries again, and again, each time increasing the sleep time. This is happening before network sercvices are started so ther is no way it can connect to ldap. anyone know a way to fix this problem?
View 2 Replies
View Related
Dec 3, 2010
I'm not really sure what the problem is here, but sshd does seem to start on system boot. tty1 does list "OpenBSD Secure Shell server" at least. Also, # service --status-all; indicates that sshd is running, but if I try and actually ssh into my box, I get a "Connection refused" response.
I am, however able to restart the service manually and everything magically works again. Odd...?
View 1 Replies
View Related
Aug 1, 2011
I need to start script I created every time so I created:
/etc/init.d/startflowcapture.
There I put:
flow-capture -w /var/netflow/ft 0/0/2055 -S5 -V5 -E1G -n 287 -N 0 -R /usr/local/netflow/bin/linkme
I made it executable:
chmod +x /etc/init.d/startflowcapture
But permanently adding it to rc defaults shows this error:
update-rc.d startflowcapture defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'K01startflowcapture' missing LSB tags and overrides
insserv: warning: script 'startflowcapture' missing LSB tags and overrides
View 6 Replies
View Related
Mar 27, 2011
Is there a quick and easy way to make sure apache always starts with a certain nice value?
View 1 Replies
View Related
Aug 9, 2010
How can I make slackware startx whenever it starts instead of having to go login as root and type startx each time?
View 6 Replies
View Related
Oct 13, 2010
To make Ubuntu work on my computer I need to select the noapic option NOW How do I make certain that the noapic option is selected always when ubuntu starts after ubuntu has been installed?I would like to install Ubuntu 10.10 on my computer togheter with windows 7
View 4 Replies
View Related
Feb 25, 2011
Hi all,
how can I make vncserver starts on boot?
Realvnc was installed by "apt-get install vnc-server" command.
There in NO start-stop script in /etc/init.d/ (is it ok? ), so I can't use update-rc.d. When placing
vncserver
or
/bin/bash -c "cd /root/ && vncserver :1" 2> /tmp/vncstart &
in rc.local it starts nothing but "vncpasswd //.vnc/passwd" (and YES, there is password in /root/.vnc/passwd)
Please, help!
View 3 Replies
View Related
Jun 29, 2010
I have little problem with gpk servce pack (from gpk-package-extra package). When im trying to make list of my packages in system i have:
Quote:
Can't write the file, no permissions. OK, but when i run gpk service package as root, program freeze, i click create packages list option but application never create this file, status is always on 0%, even after 1 hour. I saw video tutorial, where base are created by normal user i /home - why i can't Console says nothing about this.
View 2 Replies
View Related
Oct 16, 2009
How to make firefox online by default. It always starts in offlin mode.
View 2 Replies
View Related
May 21, 2010
this is an error in java not knowing its classpath. IANAP, and could use some help in resolving this.I've followed the instructions available at various sites, and the installation went fine.When I start the service I get the following in the wrapper.log:
Code:
root@twin:/etc# service adito console
Running Adito...
[code]....
View 3 Replies
View Related
Jul 30, 2011
I'm trying to make a script that loads at boot and asks for user input before doing it's stuff. So I created a script in /etc/init.d/ following the example given there (skeleton file) and used update-rc.d to make it load before GDM.
But when my script requests user input, init doesn't stop, and goes on loading other services and loads GDM. I have to CTRL+F1 to get to my script. I want my script to pause the init system till it ends doing it's stuff and the the other services can go on loading.
I tried
#X-interactive: true to no avail.
View 1 Replies
View Related
Jun 5, 2011
I have recently installed Lubuntu 11.04 on an old system. the problem is that it hangs at startup when tries to "Starting Bluetooth". I have searched through this forum and the web and it seems that the problem has something to do with my TV Card. But I can't remove the card because it is a part of my Graphic Card which is an "ATI Radeon 8500DV All In Wonder". I can start the machine with Lubuntu Live CD, and so I thought that maybe I can change a value in a file from installed Lubuntu through Live session that makes the Bluetooth Service disabled at startup.
View 3 Replies
View Related
Nov 9, 2010
How can I make Jboss 5.1 as a service? Whereby, I don't have to run it from ssh/command line to have it started.
View 14 Replies
View Related
Jan 20, 2010
Does anyone know how to make an anonymous email service like Dodgeit,com? Basically where users can go thru a web login to check any mailbox name they want at yourdomain.com.
I know you can do it thru Postfix, what other setup is needed? Any easy way of going about this?
View 4 Replies
View Related
Mar 7, 2011
Short story: I have a problem with one of my services (mediatomb) - it requires an md RAID array to be mounted in order to start, because it uses files from it. $remote_fs is added by default to the "Required-Start" line of the init script, so I thought that this should be enough. However, the mediatomb service fails to start on boot, but starts just fine when I execute "service mediatomb start" later. The array is entered in /etc/fstab and is automatically mounted on boot.
Long story...
This is my file server (Ubuntu Server 10.10), which has a raid array created with mdadm (mounted on /z), and the root filesystem is located on an USB thumb drive. I've installed mediatomb, but I wanted to put its database files on the raid array instead of the root fs, so I've symlinked /var/lib/mediatomb (the default path) to /z/mediatomb on the array. This is because the mediatomb DB is supposed to be updated fairly often, so I didn't want it to stay on the flash drive.
Problem is, the mediatomb service can't start on boot - in /var/log/mediatomb.log, it says "2011-03-07 19:22:47 ERROR: /var/lib/mediatomb : 20 x No such file or directory". As I said, it works fine when manually started later...
This is the fstab entry for the raid array code...
View 1 Replies
View Related
Jan 1, 2011
I've been dual booting 10.10 with Windows7 for about a month. Today is the first time I've encountered a serious problem.
This morning, nothing functioned properly after trying to open several programs. The computer seemed to be "frozen", although the mouse was working fine.
I decided to reboot, but then encountered an even bigger problem.
It failed to boot and got this message: no init found. try passing init= bootarg
The problem now is that it requires a Live CD session and I keep getting this: GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
In case it matters, I didn't install 10.10 from an ISO, I just upgraded from 10.04.
View 2 Replies
View Related
Jan 20, 2010
Ubuntu 9.10 will not boot! System froze this morning, I restarted and it is now failing to boot. Starts loading grub and I get this message:
mount: mounting /dev/disk/by-uuid/04aa3697-7bc0-45b5-b86a-77a1e6534bd5 on /root failed: invalid argument
mount: mounting /sys on /root/sys failed: no such file or directory
mount: mounting /dev on /root/sys failed: no such file or directory
[code]....
I booted with 9.04 LiveCD discovered the drive could not be mounted-ran fsck -ln and it told me the drive has no valid partition table. I have had intermittent problems mounting flash drives before this, so I'm kind of worried it might be a hardware issue.Also have files on that drive I would rather not lose, so reinstalling is hopefully a last resort.
View 9 Replies
View Related
May 6, 2011
I have a third party application with a database.
I have created the service but it does not wait for the database to shutdown before the systems continues with the shutdown.
This results in the database being seen as crashed.
here is my stuff i did.
CACHE START AND STOP SCRIPT FOR REDHAT
#vi /home/cacheusr/cache_ctrl
Insert below
#!/bin/sh
#
# /etc/rc.d/init.d/cache_ctrl
# Cashier Control Script
#
# chkconfig: 2345 55 01
code....
View 9 Replies
View Related
Apr 3, 2009
The difference between: service httpd start & /etc/init.d/httpd start.
View 3 Replies
View Related
Jun 1, 2011
I have installed windows on c: and the ubuntu on d: drive..Is it poossible to make ubuntu as first option when computer starts?
View 3 Replies
View Related
Sep 6, 2010
how to make a script that will check service/s status whether running or stop and also will run stop services?
View 9 Replies
View Related
Jul 29, 2010
me the difference between /etc/init.d scripts and /etc/init.d/rc?.d scripts.
View 3 Replies
View Related
Feb 2, 2010
I can make a connection to the vpn server, the connection starts, but nothing happens! My IP address remains the same as previous! There is nothing added to my Knetworkmanager, I'm a beginner I should use a pcf file for my vpn connection. I use it properly, I'm sure because the connection starts and an icon is added to my panel and remains until I disconnect.
I checked it via ifconfig -a, the last part (which is for vpn) is:
Code:
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:141.213.169.76 P-t-P:141.213.169.76 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1390 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
View 2 Replies
View Related
Jan 31, 2011
While I was using my computer a few days ago, the terminal stopped working properly, so I tried to reboot, and when it started up again it wouldn't boot and said "no init found. try passing init=bootarg"
This has happened twice before, so I really need to figure out what keeps happening, otherwise I can't continue to use linux. i reinstalled both times before. i think that this is caused by a process that prevents me from using the hard drive, because when I try to check the disk in the terminal or in gparted, it says Device or resource busy while trying to open /dev/sda1. Filesystem mounted or opened exclusively by another program?
Also, in the disk utility, in the lower right corner of the filesystem it has a spinning "loading wheel".(i'm not sure if that means anything)
I am using ubuntu 10.10, but am not sure what kernel I am using, but i tried a few different kernel options(there's three of them at start up). safe mode does not work either.
View 3 Replies
View Related
Sep 17, 2010
I have written an init script and placed it in /etc/init.d/ directory.What I would like to know is, will the script run automatically or we need to install the script using "install_initd" command.If I have to invoke this command manullay, what will be the best place to do this ? Can I add this to "/etc/init.d/rcS" file
View 6 Replies
View Related