Sponsored Content
Top Forums UNIX for Dummies Questions & Answers issues involving sshd, display and apache. Post 302080399 by ceeeyem on Tuesday 18th of July 2006 09:06:28 AM
Old 07-18-2006
/etc/sysconfig/apmd contents:

Code:
APMSCRIPTS=/etc/sysconfig/apm-scripts

# make an entry in the logfiles whenever the percentage of
# battery power changes below the value specified here
LOGPERCENTCHANGE=10

# warn on specified remainig battery percentage, use negative values
# to disable this feature
WARNPERCENT=5

# use -W to warn all users in a critical power state
ADDPARAMS="-W"

# if you have problems with your X display after returning from suspend mode
# give CHANGEVT the number of the virtual terminal your X-Server runs on
#CHANGEVT="7"

# If you set this to yes, the clock will be synced with the hardware clock
# when the computer returns from suspend mode.
CLOCK_SYNC="yes"

# Some broken BIOSes, like those found in early Gericom 3xC notebooks,
# won't wake up harddisks from suspend to disk unless they're set to PIO mode
# and 16-bit.
# Don't activate the following two lines unless you're getting
# "hda: lost interrupt" after returning from a suspend to disk.
#HDPARM_AT_SUSPEND="-q -X0 -q -c0 -q -d0 -q -u0 -q -S0"
#HDPARM_AT_RESUME="-q -X66 -q -c1 -q -d1 -q -u1 -q -S30"

# the error-beep of your terminal might be set to the default values after a
# resume so set TERMINALBEEP to "yes" to restore the values in
# /etc/sysconfig/keyboard
TERMINALBEEP="no"

# if your sound sometimes doesn't work after a resume set RESTORESOUND to "yes";
# this will kill all sound applications, remove and start the $SOUNDMODULES
# again, and, if you also set $RESTORESOUNDPROGS to "yes", restart the
# sound applications as the correct user and on the correct display
RESTORESOUND="no"
RESTORESOUNDPROGS="no"

# some services might need restarting after a suspend/resume cycle - for
# example, named will shut down if all network interfaces go down.
# Any valid service (as in "ls /etc/init.d/") can be listed, and will be
# restarted if it was running at suspend time.
RESTORESERVICES="named amd"

# I got frequent problems mainly with scsi-pcmcia-cards on the cardbus. Use
# PCMCIARESTART="yes" to stop the whole pcmcia-subsystem on a suspend and
# to start it again after a resume. This can slow down your suspend and resume
# process. Use PCMCIAWAIT to wait with the suspend until the pccard is removed
# from the system.
# Some BIOSes are too buggy to handle cardctl suspend and cardctl resume
# properly, in these cases cardctl eject and cardctl insert can be used instead.
# However, this actually ejects the card on hardware supporting it, so if
# the BIOS isn't buggy, it shouldn't be used. Set PCMCIABIOSBUG to yes if
# you are experiencing problems with PCMCIA cards after a resume.
# Since buggy BIOSes seem to be far more common than hardware that can eject
# PCMCIA cards (and it doesn't make a difference on systems that don't have
# either), it is enabled by default.
PCMCIARESTART="no"
PCMCIABIOSBUG="yes"
PCMCIAWAIT="no"

# Set ANACRON_ON_BATTERY to yes if you want to run anacron after a resume even
# if you're on battery power.
ANACRON_ON_BATTERY="no"

# Set LOCK_X to yes if you want to lock all your X displays at suspend
LOCK_X="no"

# If NET_RESTART is set to yes, the network will be shut down at suspend and
# restarted at resume.
# This is especially useful if you're using DHCP, but usually won't hurt.
NET_RESTART="yes"

# If NETFS_RESTART is set to yes, NFS filesystems will be unmounted at
# suspend, and remounted at resume (if possible).
NETFS_RESTART="yes"

# If you wish to stop any services when going to battery power (and restart them when
# going to line power), list them in POWER_SERVICES.
# Any service started using the init scripts can be listed (the APM script runs
# "/sbin/service ... stop" for each of the services).
# If you want to stop/restart any services that are not started by the init system,
# use an apmcontinue script.
#POWER_SERVICES="atd crond"

# If you wish to stop any services when running short of battery power (and restart them when
# going to line power), list them in LOWPOWER_SERVICES.
# Any service started using the init scripts can be listed (the APM script runs
# "/sbin/service ... stop" for each of the services).
# If you want to stop/restart any services that are not started by the init system,
# use an apmcontinue script.
LOWPOWER_SERVICES="atd crond"

# Some broken BIOSes (e.g. the ones found in Toshiba Satellite Pro 4600
# Notebooks) need some time to settle down before really entering suspend
# mode.
#
# If your BIOS is broken, uncomment the line below, and possibly change the
# value (e.g. "5s = Wait 5 seconds before allowing to suspend").
#DELAYSUSPEND="3s"

# If your machine supports using cpufreq to change its speed, you can enable
# this to support changing the cpu frequence to performance or powersave
# based on whether or not you are currently on AC power or battery power
#CPUFREQ="no"

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

apache issues

hi guys! well, as some of you might have noticed, i was having issues getting my linux box going correctly -- well, after some long hours and the help of you guys and my trusty o'reilly linux in a nutshell book, everything's runing great and i'm getting much more comfortable using the file... (3 Replies)
Discussion started by: aenemated
3 Replies

2. IP Networking

Change the root directory for apache, sshd and ftpd

Helo ! I want to do something and I don't know where to start... I want to make a small web hosting server (just for me and a few friends) and for the sake of learning I'd like to make an account for every user. The thing is that I want everyone to log into the server and to be put in his home... (3 Replies)
Discussion started by: Sergiu-IT
3 Replies

3. AIX

It helps in the sshd on sshd.log

Friends, I made the installation of the ssh in the it conspires, I configured in the ssh_config the following parameters.. SyslogFacility AUTH LogLevel INFO that should generate sshd.log in the /var/log.... more no this generating. Somebody could help myself in... (0 Replies)
Discussion started by: sandba
0 Replies

4. UNIX for Dummies Questions & Answers

cal command display issues

I am using AIX version 5.3 I like the cal function because I can print a nice concise view of the calendar for the whole year. I want the calendar to display with 3 months across instead of 2, which is what is happening. My terminal display is set with 67 rows and 140 columns so that should... (0 Replies)
Discussion started by: ruddydaggerwing
0 Replies

5. Web Development

Using IP.Board on FreeBSD, having SQL/Apache Issues

Server: FreeBSD 7.2-RELEASE MYSQL Version: MYSQL 5.1.36 PHP Version: 5.2.10 (apache2handler) IP.Board Version: v3.0.2 Safe Mode: OFF For the most part previously IP.Board, forum software, has run fine without any issues. Regular web pages and .php pages seem to load fine without any issues.... (2 Replies)
Discussion started by: Dark Severance
2 Replies

6. Red Hat

Apache / Tomcat / APR Issues [RHEL]

Evening, I'm posting for help here, because I'll be honest I've reached the end of my tether, hopefully someone can give me some assistance and help me maintain a level of sanity... I maintain a number of webservers on RHEL 5 64Bit (Red Hat Enterprise Linux Server release 5.3 (Tikanga)), the... (2 Replies)
Discussion started by: cpickering
2 Replies

7. Web Development

Apache write permission issues to another user owned directory

Hi I am trying to make a web program which is command line equivalent. i have done the coding in cgi program in perl and html for basic forms to take inputs. when i ran the program from web application i see permission denied messages. after analyzing i found apache is running as wwwrun which... (2 Replies)
Discussion started by: rakeshkumar
2 Replies

8. Linux

Apache httpd configuration - Issues with APR

Hi I have tried setting up of Apache http server - httpd-2.4.25. During configuration, I understand it needs APR to be setup. Hence I have downloaded APR & APR-Util. Performed, tar xvfC apr-1.5.2.tar /root/httpd-2.4.25/srclib/apr What is happening is there is another directory... (1 Reply)
Discussion started by: videsh77
1 Replies

9. Shell Programming and Scripting

Display status of instances in apache - Where to start

Hello, I know this is not a simple question so I just need to know where to start for below project: I am running under Ubuntu 18.04 What I'd like to see in apache page is to display status of particular process pids. ps aux | grep keywords.txt keywords.txt word1 word2 word3 word4... (9 Replies)
Discussion started by: baris35
9 Replies
All times are GMT -4. The time now is 03:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy