Fedora :: Adding Server Startup Script To Service Commands?
Sep 7, 2011
I just installed tomcat server in linux and for shutdown and startup, i have to run the script inside $tomcat/bin folder (startup.sh and shutdown.sh) manually.
I want to add tomcat as service and i want to execute as service commands like /sbin/service tomcat start/stop.
I found a way to capture emails sent from my Drupal installation, and Fakemail seems simple enough. I can follow the tutorial. Since the application Fakemail needs to be running to capture the outgoing emails, it seems like a good candidate for xinetd, yes? I've found a simple config tutorial describing starting the service and what the parameters are for the service-specific configuration files. This got me this far,
Code:
# default: on # description: This is a script to start the Sandbox app "fakemail" service fakemail
[code]....
But the service is not starting up. Will someone help me with this config file? Or, recommend another application which uses a similar configuration like Sendmail so I can copy this The Fakemail application/service is started from command line like so,
i want to start /usr/bin/brscan-key at startup. since i find it handy to push on the scan button , and the scanner is saving the scanned image to my pc.
can i add /usr/bin/brscan-key at /etc/rc.local on a safe way?
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?
how to execute commands on startup. I've added lines to /etc/rc.d/rc.local, /etc/rc.local, I've put scripts (with extension .sh) into /etc/init.d/ and I've set the executable permission thing on all of them with chmod -x. I *still* can't get anything at all to execute on startup. The truth is, I'm trying to enable multitouch and button tapping automatically when I startup Fedora. I have the commands
[code]...
Which I want to execute whenever I start Fedora (it's a bit tedious to write them every time, or even to have to execute a script myself whenever I start my computer). Furthermore, if I can figure this out, then I can do all sorts of things. Does anyone have a clear, surefire way in which I can do this? I'm not good with using Linux at all
When installing Samba and Webmin I use the application "system-config-services" or (if it is easier to find for you that way) menu->Administration->Service management. In this application I can start the services I need (nmb, smb, webmin), but the enable/disable at startup setting is greyed out... Even when I start the application as root it still gives me no possibility to configure the services to start up on boot. This should be possible. It works this way in Fedora 13 and Fedora 14, so why not in Fedora 15?
Before reporting a bug, I would like to ask if other users here have the same problem (and -if possible- a solution)... In the mean tim I guess it is back to the old way of configurating services - sigh..
[edit] I tried to remove the [SOLVED] from the title, but the forum software does not seems to allow me to do that... I thought it was solved by installing xinetd, but I was happy a bit too early. I still have no answer for this problem.
I'm building a Debian based router, I want to add to this router a mail service function. I don't want mail to be sent outside of the network, what I want is the ability for services to send mail to the Debian server and for me to then pick them up from this server via pop3 into my normal mail application. Given I'm not looking for mail to be sent outside of the network and its strictly for services to log notifications via. What of the various mail applications should I setup? i.e. just looking for SMTP + POP3 internally.
I want to start a service and a script SiteMonitor.sh at startup.
Here is brief working of SiteMonitor.sh(This script monitors the ip addresses of machines which are using http service of the host. This script checks this after every 5 seconds therefore i have run it at background.)
To start with i have modified /etc/rc.local file.
Here is the content of my /etc/rc.local file.
Code: #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff.
I have a question regarding terminal. I try to launch it from the "Startup Applications" by entering a script.Code: sh -c '/usr/bin/gnome-terminal'but it does not start.Also, when it does start I would like it to auto run certain commands: navigate to my project folder run "play test" open a new tab run "top".how can I achieve this?
I'm not used to using Ubuntu or Debian as a server. I'm more accustomed to Red Hat/Fedora ways and even Gentoo (yikes).
Under Red Hat installs, you can often configure most services that start from init using config files in /etc/sysconfig named by the service. Is there and equivalent thing under Ubuntu?
Specically I'm trying to control how the libvirtd and kvm processes are started as far as command line options go. I need to add the --listen option somewhere.
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.
I'd like to add custom startup commands (for example starting a process, registering to a registration server, downloading a configuration file) to the Linux startup process. Those commands should be triggered on startup only. What is the standard/appropriate way to do this?
EDIT: Is /etc/profile the right place to trigger such things?
I just downloaded intel's fortran compiler, ifort. However, I seem to have to add it to path for every single terminal I open using:
Code: source <install-dir>/bin/ifortvars.sh <arg>
I immediately think that there should be a way of doing this automatically at startup. However, this isnt just pointing to where ifort is, but running a shell script, which evidently only affects a single terminal session.
hHow would I add my SSH server to run levels 3,4,5? I have been trying to search google for this answer to my problem for hours and cannot have any luck.
I'm running Ubuntu maverick meercat 10.10. I don't think it's very necessary to mention my hardware to get an answer to this question.I found out about the Cairo-Dock and fell in love with it. It annoys the hell out of me to have to start it every time I boot. I navigate to- System> Preferences> Startup ApplicationsUnder the startup programs tab I click on add... Now what??? Put the name as Cairo... what about the command. I don't know what file to navigate to.
I have searched through piles of postfix and sendmail documentation but I'm not sure of the terminology to describe what I want to do so I'm never sure what solutions are workable. Null client, relay hosts. What I have already is a RHEL postfix server which sends and receives email. What I want to do is add a second postfix server to the network. The second server should accept only ssl smtp mail and forward it on to the main postfix server. Users shouldn't use it for normal internal sending/receiving. It's only to allow me to support ssl smtp from people working out of the office without messing about with the main postfix server. I thought a Null Client sounded likely but I don't think it will accept mail. Is it a relay host I'm trying to configure? Any pointers on configuring something to just accept secure smtp and forward?
My actual mail is via pop3 from verizon. What I've done so far is just pull my pop3 mail onto my main machine at my house. But I'm finding I'd rather have a single imap server on my network so then all my machines could see the same mail.
I don't really want the imap server to poll verizon for mail, I just want the imap server to check pop3 mail at verizon only when one of my mail apps checks into it to look for mail.
I am new to XFCE and I'd like to ask few question about usage: 1. How can I disable dragging windows through workspaces? I like them to stay at one. 2. How do you configure startup applications? 3. Why XFCE menu doesn't show some of my custom icons? (png, tried more than one, for custom launcher - eclipse) 4. How do I add custom keyboard? (ALT+SHIFT switching) 5. I restarted laptop and all my applications re-opened after restart. I do not want that. How to disable this?
I setup a memcached and want to run this file " /etc/init.d/memcached " when the server boots. I do not know where to add this in order to run at start-up(in which file).
I'm looking for a way to automatically startup Ventrilo when my linuxbox restarts. At the moment I have to manually start it up. I know there is a way and I've tried to follow other threads but I can't seem to find a tutorial on how to do this with the Fedora 12 distro.
After yesterday system update the x server won't start up anymore. It locks immediately with blank screen leaving the computer unresponsible until hard reboot. I hat to once again go with the "vesa" driver, as I mentoined earlier in another thread it is a life saver, always works. My video card is integrated Radeon HD3250 - video driver was fglrx from ATI itself. "radeon" driver now reports that modesetting is not supported and will not load with EE-type X server error.
Anyone else experienced this? Are there any changes in the most recent X server that once again break compatibility with the official ATI driver?
Regarding the gnome-panel in Ubuntu (64 bit).... I discovered some time ago that I wasn't the only one who routinely (every login) had their gnome-panel appear butchered, for which Alt-F2 then 'killall gnome-panel' would easily fix.
Having become impatient with this over the past 8 months, I decided I would automate the process and so cofiguring the startup applications seemed like a perfectly logical choice to me. Turns out I was wrong. After adding 'killall gnome-panel' to the startup applications not only does the panel fail to load altogether now, but Alt-F2 doesn't even work.
I tried Ctl-Alt-F1 and working with the graphics-free mode thinking I could somehow navigate to the startup apps config file and edit it, but I don't know where it is or how to edit it without logging in as root and I certainly don't know of any 'root password'.