Server :: Chkconfig Runs Script With Different PATH Values?
Oct 7, 2010
I have a question regarding the user that chkconfig runs as. My chkconfig script calls some other scripts to start up a tomcat instance. But the secondary scripts use %JAVA_HOME and for some reason the user it's running under doesn't have that defined. I can call the scripts directly as the root or as another user and it works properly. But I added an echo in the script and when chkconfig calls the script it has a much smaller $PATH and no $JAVA_HOME.
View 3 Replies
ADVERTISEMENT
Apr 22, 2010
I would like know in which file is the machine name, os type and processor architecture stored in? I would like to know the path to those files where the value for os is i386 and machine i686 is something like this, in which file the systemuser and the number of users of that system is stored
/usr/src/redhat/RPMS/ ...
In these files i686 and I 386 is stored as directories and not as values but I want them as values in the file.
View 4 Replies
View Related
Mar 8, 2010
I've just created a new chkready script. but on trying to add it will the following command I get an error:
Code:
$ chkconfig --add languagetool
service languagetool does not support chkconfig
PS: Just learned how to write a chkconfig script.
View 5 Replies
View Related
Aug 31, 2010
I'm on a CentOS server and for the past hours I have been trying to unsuccessfully make a script that will start a binary and keep it running if anything goes wrong with it.
This is what I have:
Code:
#!/bin/bash
# counter daemon
# chkconfig: 345 20 80
# desc: counter daemon
[Code]...
Does anyone know how I can make the script start my application?
View 7 Replies
View Related
Sep 29, 2010
have to create a webhost on an running fedora server which runs multiple webpages + a coldfusion serveri have to add an coldfusion virtual host to these.what i would do:*crate a new user & group*enter vhosts.conf and copy an existing host and modify it for the new one.*create an new folder and copy the main files (phpstarter and webroot) *chown the files for the right useri think an apache graceful would be needet
View 1 Replies
View Related
Oct 13, 2010
I have a launcher for Quake that essentially runs a shell scripts that runs quakespasm with certain options. Is there a way to add it to AWN?
View 6 Replies
View Related
May 21, 2011
what happens if "#chkconfig --level 345 dhcpd on a network with existing DHCP server"
View 2 Replies
View Related
May 14, 2010
As mentioned in "man swapon" priority value is between 0 and 32767. BUT usually if we add swap devices without giving the priority, their priorities are set as -2, -3, -4 and so on; values which does not fall between 0 and 32767.Why is it so ? Any ideas ? However, I know we can change them through "swapon -p". But, if do not wish to do so, it uses -2, -3, -4 only. Like below,
Code:
[root@server ~]# swapon -s
Filename Type Size Used Priority
[code]....
View 2 Replies
View Related
Jan 16, 2011
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
View 14 Replies
View Related
Jul 19, 2010
when i give service postgresql status command. i get the following.ostmaster (pid xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx) is running...The issue is my postmaster service is running in multiple process ids.As a result my cpu usage becomes high.How to resolve this. my postmaster service need to be run under only one process id
View 3 Replies
View Related
Aug 27, 2010
I migrated joomla to my new server and noticed that the script doesn't have the permission to edit it's own configuration file and write to the cache folder. All my files are owned by root, which I guess isn't a good idea.
As what user do the PHP scripts run? Or is this system specific? I don't want to chmod all files to 777 so I'd just like to change file and folder ownerships to the user that is executing that script.
View 1 Replies
View Related
Jun 21, 2010
How can I know the name of the X server which runs in my system?
View 8 Replies
View Related
May 4, 2010
I have a Godaddy UCC (Multiple domain) certificate for the following domains:
example.com
upload1-example.com
upload2-example.com
The rsa was generated from example.com server using example.com as CN Common name.
GoDaddy's website adds the extra names to a CSR you provide, does the checks and grants the cert.
My problem is that whilst the certificate works fine on the server example.com (from which the csr was created), it comes up with two errors when restarting apache on remote servers.
1>> Certificate common name does not match server name
2>> SSL Library error - check private key:key missmatch.
I donn't understand how these keys could ever work as no reference to the private keys of the remote servers is ever used in creating the UCC certificate.
View 4 Replies
View Related
Jul 29, 2011
I'm running a Minecraft server off of a dell T110 with Ubuntu 10.1 installed, as I haven't had a chance to install Natty yet. The problem is, it's running very very slowly, past the point where I could say it's the hardware's issue.
I have an intel xeon (2.4ghz quad core) in there, with 2gb of RAM. 2gb isn't much, but the computer runs slowly even when the MC server itself is off.
I'm talking super super slow, like, the cursor doesn't even show up all the time. It disappears frequently and things take a while to render/open, a site like facebook takes about 20 seconds to completely load.
This is my first ubuntu install, so I'm kind of new to it. The only problem/solution I could think is that I may have installed the 32bit version on a 64bit processor. I don't think I did, butttt that's the only thing that occurs to me
View 3 Replies
View Related
Sep 1, 2010
I have debian lenny, when I run an application is slow to load (example: iceweacel open and it takes, I can hold him iceweacel work normally), I tried to change from gnome to another and the same thing, went down some services (samba, squid) and nothing. I open a terminal and it takes, I want to duplicate it and do it fast. From a terminal without X (tty1) with root run mc and moves quickly, also run as root "sudo mc" and takes to boot.Any action done with sudo it takes to run.
Can not be what it takes to make starting the applications, not the PC because it is new, and from one moment to another I began to pass this
The sudoers file is fine, in the log's nothing unusual, since other PC take long to enter samba.
View 1 Replies
View Related
Jun 9, 2011
I have a box that is Rec Hat Linux 5.4 with Apache server 2.2.3 . I'm told there are multiple vulnerabilities in Apache httpd, that version 2.2.16 or later is better. However, I did a package update this week and 2.2.3 is where I sit. Is there a newer version that will run or a patch for 2.2.3? Upgrading Red Hat is not an option.
View 3 Replies
View Related
Apr 18, 2011
I have a cron job like this.
04 07 17 04 02 sh -x myscript
this means the file myscript should be executed when the server date comes to Apr 17 on Tuesday at 07 04 am.
But the file myscript runs on every tuesday of April month.
View 6 Replies
View Related
Oct 20, 2010
So I am creating a LDAP server for my school's Linux lab, so users on our school network can log into the Linux machines.
I found a guide here url...Authentication
But during the install, I get the following error.
update-rc.d: warning: libnss-ldap start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (none)
View 2 Replies
View Related
Jan 25, 2010
Php file that basically runs a few commands and echoes the output. It's for checking things like temperatures etc, space free.
You can see it in action here: [url]
I've attached the actual php file.
Two questions:
1) What more can I add to it to give me even more information?
2) I want to add hddtemp but it requires sudo to run. How can I get around this?
View 4 Replies
View Related
Sep 12, 2010
I want to start my conky while system boots. what i am getting is:
[Code]....
View 2 Replies
View Related
Feb 24, 2010
I'm trying to bring up a server on CentOS5 -- working from Debian instructions.
I've just installed postgres and an init.d script postgres8-2.4. My Debian instructions next tell me to execute:
update-rc.d postgresql-8.4 defaults
...which doesn't work on CentOS.
Searching Google, I see that I should use chkconfig instead. But it doesn't work either. My guess is that I to add code to the init.d file, but what?
View 4 Replies
View Related
Aug 5, 2010
I have a server and i think that my server is under Ddos attack. i see that server is not having much load and only few process runs but my site opens very slow. i executed the following command on my ssh:
[Code]....
View 7 Replies
View Related
Jun 17, 2010
I want to write init.d script, I find some material (It will be wonderful, if you will give some more materials to read) and i have nice script, but it says
Code:
service test_script does not support chkconfig
Where I can read about how to add chkconfig support to the script?
View 3 Replies
View Related
Nov 15, 2010
I want dovecot to start at boot and I can't seem to get this to work.Initially, I installed chkconfig and tried to run "sudo chkconfig dovecot on". This generated a whole bunch of errors about upstart and insserv not getting along properly. I patched chkconfig according to a post on this page:URL...
View 5 Replies
View Related
Feb 20, 2011
How do i disable kudzu without using chkconfig?
Code:
/sbin/chkconfig --level 3 kudzu off
Is there any other way of doing it .
for example by modifying parameter of any file.
Basically i want kudzu to be disabled during the first run of the machine after installation. I have full access to the filesystem without starting the machine(its a virtual machine).
View 10 Replies
View Related
Feb 18, 2011
Usually I use LINUX and I can set the running scripts under /etc/init.d and I can check this with 'chkconfig'. But now by Solaris I got "chkconfig: not found"
View 2 Replies
View Related
Feb 1, 2010
i am trying to add a script on rc6.d using chkconfig but it doesn't work. I am missing something but i dunno what. I try with a test script /etc/init.d/test cat test
#
# test test
#
# Author: Maurizio Marini
#
# chkconfig: 2345 98 02
# description: this is a test
[Code]...
View 8 Replies
View Related
Dec 23, 2010
I installed a new squeeze serverXen Hypervisor runs the server as Dom0 anda virtual Windows XP.The server runs samba, postfix, dovecot, squid, cups and hylafax with a Frritz ISDN card (module fcpci.ko).The used memory of Dom0 rises slowly (about 5MB /h) until the system crashes.As a workaround i installed a reboot every 24 hours.htop shows normal behavior.The system is already in production, so i can't stop services to track this bug.I need some hints how to debug the running system to find out, where the memory gets lots.
View 3 Replies
View Related
Jan 9, 2009
I found and modified the following file. It starts JBoss just fine. However, chkconfig refuses to --add it - saying the file doesn't support it.
its in /etc/init.d, root:root, rwx,rx,r and the first few lines...
#!/bin/sh
# chkconfig: 345 100 25
# description: JBoss App Server
# processname: jboss
[Code]....
View 9 Replies
View Related
May 16, 2011
I want to be able to create a service so that the bash script will run every time the server boots up.
I am running CentOS 5.
I have been reading about chkconfig and creating a file in /etc/init.d for chkconfig to handle but I cannot seem to get it to work whenever I 'chkconfig servicename on' and then 'service servicename start'
When I do chkconfig --list my service is listed there.
Can someone provide me with a sample of the file I need to create in /etc/init.d and how to get everything running?
View 2 Replies
View Related